-
The last time I used this package, I was able to reference images through auto-generated identifiers using the alt text, but that seems to have been reverted in 1c31c01. I tried enabling I tried enabling I know I can just revert 1c31c01 locally to get the original behaviour or use a Thanks for you work! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
As you noted, in commit 1c31c01, I disabled the automatic generation of LaTeX labels from the Markdown image labels. I did this because the Markdown image labels may contain not just text but also markup: ![foo _bar_](baz) Generating LaTeX labels from text with markup would cause issues. The "official" syntax is using the option ![foo _bar_](baz){#foo-bar} However, there is no "official" semantics to this syntax, i.e. you would need to redefine the renderers |
Beta Was this translation helpful? Give feedback.
As you noted, in commit 1c31c01, I disabled the automatic generation of LaTeX labels from the Markdown image labels. I did this because the Markdown image labels may contain not just text but also markup:
Generating LaTeX labels from text with markup would cause issues.
The "official" syntax is using the option
linkAttributes
and attaching an HTML identifier to the image you wish to reference:However, there is no "official" semantics to this syntax, i.e. you would need to redefine the renderers
imageAttributeContextBegin
,imageAttributeContextEnd
, andattributeIdentifier
yourself to achieve the desired effect.