This is a personal collection of (Lua) filters for pandoc.
These filters (especially fixes-ms.lua) are intended for use with the bk.ms template and the ms.yaml defaults file.
FSerR font for taskitem symbols. (Also replaces the crossed box symbol with a checked box symbol, for purely aesthetic reasons)..UL macro instead.ms-div-classes and ms-div-attr.\noindent at the start of a paragraph is handled as expected.heading-fontfam and heading-fontfam-max-level.Make images work in PDF output based on roff ms by using the .PDFPIC macro. Limitations:
convert command).pdfinfo (part of Poppler).data-latex-environment attribute.Transform Python-Markdown admonitions to Pandoc fenced divs. When run as a
script may either take a single filename or read markdown content from stdin.
An admonition looks
like this:
!!! note "My title"
Some text: This is the first paragraph
Second paragraph.
Resulting in this HTML output when processed:
<div class="admonition note">
<p class="admonition-title">My title</p>
<p>Some text: This is the first paragraph.</p>
<p>Second paragraph.</p>
</div>
A missing title results in the admonition type being used as title (capitalized).
An empty title ("") results in no title being used.
Recommended admonition types (the same as for RsT): attention, caution, danger,
error, hint, important, note, tip, warning.