Add support for output-specific components and properties. This provides support for content that targets a specific output type (html or latex). The ast and esm output types still include the full AST, inclusive of all output-specific blocks.
Examples:
::: latex:only
This content will be parsed as usual, but only included in latex output.
:::
::: { .latex:only }
Same as above. The `only` flag is just a class, so can be used in any fence or code block,
including as a class annotation for components such as `figure`, `equation`, etc.
:::
``` latex:only
Code block content passed to latex only.
![](img.png}{latex:width=80%}
Provides an image size property for latex but not html output.
html
orlatex
). Theast
andesm
output types still include the full AST, inclusive of all output-specific blocks.Examples:
![](img.png}{latex:width=80%} Provides an image size property for
latex
but nothtml
output.