panflute
panflute copied to clipboard
An Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions
Background: I am trying to convert a large amount of html documents to word (docx) format. The html documents contain configuration files from programs such as apache2, postfix, etc. These...
Hi folks, I ran into a problem, when I wanted to get rid of tables in a (r)markdown. Usually I would simply look for a Table class a return an...
It would be great to update panflute to Pandoc 2.18. Pandoc 2.18 uses the latest version of `pandoc-types`, so there may be relevant conflicts. Note that Panflute 2.0.5 did not...
The filter `fixtoc.py` no longer has the desired behavior explained here: https://stackoverflow.com/questions/42664314/make-master-table-of-contents-covering-several-separate-input-files-using-pandoc Using the solution described there gives `pandoc --number-sections --file-scope --toc -s *.md | pandoc -s -f html -o...
Hi guys, currently I'm running several filters and I had the need to create my own metadata value named `panflute-filters-pre`, what I do with that variable is to receive a...
Add e.g. this to the sphinx docs: https://github.com/kiwi0fruit/pandoctools/blob/master/docs/panfl.md
There are a few things where metadata _could_ be improved. For instance: ## 1. Integers and floats get auto converted to strings: ```python >>> from panflute import * >>> doc...
I want to replace keywords everywhere they occur. See my example: ```markdown # This is the heading {#sec:alpha} This is ref 1 = @sec:alpha This is ref 2 = {@sec:alpha}...
Here is a minimal working sample, for a latex document input (`main.bib` doesn't have to present): ``` \begin{document} foo \bibliography{main} \end{document} ``` with a `finalize` filter calling `replace_keyword` replacing with...
The auto filter functionality does not recognize when a custom data-dir has been passed in on the command line. It looks like the code has some knowledge and logic to...