Strips extra content from markdown files that was added e.g. for converting the files to docx using pandoc
Stripped content can include for example:
-
pagebreaks:
https://github.com/pandocker/pandoc-docx-pagebreak-py
\newpage \toc
python -m pip install mkdocs-word-filterActive the plugin in mkdocs.yml. You can specify the ignorable strings as a list under the filter-lines-with
plugins:
- search
- mkdocs-word-filter:
filter-lines-with:
- \toc
- \newpageNote: If you have no
pluginsentry in your config file yet, you'll likely also want to add thesearchplugin. MkDocs enables it by default if there is nopluginsentry set, but now you have to enable it explicitly.
More information about plugins in the MkDocs documentation.
More information about templates here.
More information about blocks here.