A MkDocs plugin to filter extra content that was to markdown documents for e.g. formatting docx files.
Project description
mkdocs-word-filter
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
Install
python -m pip install mkdocs-word-filter
Usage
Active 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
- \newpage
Note: 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.
See Also
More information about templates here.
More information about blocks here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs-word-filter-0.1.1.tar.gz.
File metadata
- Download URL: mkdocs-word-filter-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
606b038801db712eddc83c39371774797985aa41575f67bd35e285198534c3bc
|
|
| MD5 |
70c21be1675dfa4c09e90d9ae2987441
|
|
| BLAKE2b-256 |
932f265324f9d7837253c0d14f84e5fbbef7b1ca7c206710356573af75bb6dd1
|
File details
Details for the file mkdocs_word_filter-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mkdocs_word_filter-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daf199a4efbf5e8effabca5d3b0c80d4c0eb404c68cfd15a17be701eb969d596
|
|
| MD5 |
e81d867736d5d0a0e9bf84684eb02e43
|
|
| BLAKE2b-256 |
99548ab5ad7a97c7fbea1493e3ff13877a200bd5fadf5c8685811f5d81920f63
|