On Sat, Jul 27, 2024 at 11:36:19AM +0200, Patrice Dumas wrote: > Still this is interesting, as this calls for including the call > of convert_tree_new_formatting_context in format_single_footnote. I'll > make that change.
Here it is: https://git.savannah.gnu.org/cgit/texinfo.git/commit/?id=056d518faac6d799ca3f461d8849045da927abfb I also added a test and an init file where register_pending_formatted_inline_content is used, also based on your code: https://git.savannah.gnu.org/cgit/texinfo.git/commit/?id=15f90529ee13a5d2b8bf5364078c9a4902af1058 The result, visible in tp/t/results/init_files_tests/test_format_single_footnote_in_inline_content/res_html/chap.html shows that the output is expected output for paragraphs, could be improved when there are block commands at the beginning of the footnote. This is probably doable by looking at the contents of the footnote in the Texinfo tree and find the first formattable content, and if it is not a paragraph, prepend simply the mark. Let's wait for actual user requests. -- Pat