You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the image macro is placed on a line by itself in the content key of the running content (header or footer), the converter is ignoring the surrounding text and treating the content as a block image.
footer:
recto:
left:
content: |
this text is dropped +
image:logo.png[fit=line]
This is happening because the converter is looking for an isolated image macro (to treat as a block image) per line instead of across the whole value. When it finds the image macro on a line by itself, it mistakenly assumes it's the only content. That's why the text is dropped.
The workaround is to put an attribute reference in front of (or after) the macro to disrupt the match.
footer:
recto:
left:
content: |
this text is not dropped +
{empty}image:logo.png[fit=line]
The text was updated successfully, but these errors were encountered:
mojavelinux
added a commit
to mojavelinux/asciidoctor-pdf
that referenced
this issue
Feb 15, 2024
If the image macro is placed on a line by itself in the content key of the running content (header or footer), the converter is ignoring the surrounding text and treating the content as a block image.
This is happening because the converter is looking for an isolated image macro (to treat as a block image) per line instead of across the whole value. When it finds the image macro on a line by itself, it mistakenly assumes it's the only content. That's why the text is dropped.
The workaround is to put an attribute reference in front of (or after) the macro to disrupt the match.
The text was updated successfully, but these errors were encountered: