jgrassler / mkdocs-pandoc

[unmaintained] mkdocs -> pandoc converter: use this fork https://github.com/twardoch/mkdocs-combine
Apache License 2.0
107 stars 39 forks source link

Markdown Extensions #27

Open moigagoo opened 7 years ago

moigagoo commented 7 years ago

First off, great tool! Thanks a lot!

I'm using some custom Markdown extensions, e.g. https://github.com/gisce/markdown-blockdiag. Unfortunately, blockdiag blocks don't get processed.

Do you thing there is a way to apply extensions before feeding the source to mkdocs2pandoc?

jgrassler commented 7 years ago

First off, great tool! Thanks a lot!

Thanks, happy to hear that :-)

I'm using some custom Markdown extensions, e.g. https://github.com/gisce/markdown-blockdiag. Unfortunately, blockdiag blocks don't get processed.

Do you thing there is a way to apply extensions before feeding the source to mkdocs2pandoc?

Hmm. No easy way, I'm afraid. I don't really use python-markdown, except for some primitive block parsing stuff in https://github.com/jgrassler/mkdocs-pandoc/blob/master/mkdocs_pandoc/filters/tables.py. One could hack up a filter for generating the SVG diagrams of course, but it would need to be done pretty much from scratch (python-markdown is really unfriendly as soon as you try to use it for anything other than generating HTML).