How to keep admonitions in markdown -- pandoc --> docx convertion? #10303
Replies: 2 comments
-
I have found the option I have found something like |
Beta Was this translation helpful? Give feedback.
-
At the end I think I got it: Lua filter (admonition.lua):
Comand line:
|
Beta Was this translation helpful? Give feedback.
-
I have a Markdown source, cuirrently using admonitions in
!!! TIP
format (but I can eventually change this). How do I keep admonitions, possibly with an icon, when converrting to docx format using pandoc ?EDIT:
I think I managed getting an icon, but how do I wrap the whole div in a docx style that I can then personalize in the docx itself ?:
Markdon source:
Lua filter:
(admonition.lua)
Command line conversion:
pandoc source.md --lua-filter admonition.lua --from markdown+fenced_divs -o output.docx
Result:
As you can see, I have the icon but the content of the tip is in the same style as the rest of the document. How can I have a style that inglobe the tip (warning, note....) header and the tip content ?
Beta Was this translation helpful? Give feedback.
All reactions