rchaput / acronyms

Adds support for Acronyms, and List of Acronyms, to Quarto documents.
GNU General Public License v3.0
20 stars 2 forks source link

Fix option to customize the LoA format #25

Closed rchaput closed 4 months ago

rchaput commented 4 months ago

The option implemented in the previous PR #24 was not working correctly for some templates that render to several "blocks".

Using a bullet list, such as: - **{shortname}**: {longname} was fine, because a bullet list counts as a single block. The same template, without the bullet point (**{shortname}**: {longname}) did not work any more, because it generates several blocks in Pandoc.

The fix should work for most templates, although it requires wrapping the result in a Div, which changes the result. When generating a bullet list, it might be seen as unnecessary, because it is already a single block in itself; yet, it should be our safest way to handle all templates.