Replies: 1 comment
-
You can use
::: {custom-style="myStyle"}
A paragraph.
Another paragraph.
::: In this example, you get two paragraphs with "myStyle" custom style. You can do something similar, but you must write a filter that uses that information to add classes to the HTML elements inside those |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im using Pandoc as a library in the backend of a website where I want to take markdown documents and render them as HTML. I"m using TailwindCSS for styling which means that I need to be able to add a custom CSS classes to the generated HTML elements.
Some of the
Block
constructors contain aAttr
parameter which allows me to insert aclass
attribute via a recursive function. However, this is not the case for allBlock
constructors. Why is that? Is there some other way to insert attributes, either into the Pandoc AST or via the HTML writer?Beta Was this translation helpful? Give feedback.
All reactions