mkdocs-combine icon indicating copy to clipboard operation
mkdocs-combine copied to clipboard

Architecture Comment Filters

Open kellpossible opened this issue 7 years ago • 4 comments

Hey, just thinking, perhaps it would be better if instead of converting everything to a single markdown document and then applying filters, it converted it all directly to a single page html document, and apply the filters to that. The reason for this thinking is that filters can be more reliably applied to HTML documents because they are easier to edit, as opposed to a bunch of flimsy regexes

kellpossible avatar Apr 24 '18 00:04 kellpossible

and pandoc still has the ability to convert html documents to latex for pdf purposes as far as I'm aware, also it opens up the door more for using this with other html to pdf converters.

kellpossible avatar Apr 24 '18 00:04 kellpossible

I have another private project which uses html as an intermediate representation to convert from microsoft word documents to markdown/reStructuredText in order to apply edits before converting again with pandoc. This approach appears to work pretty well.

kellpossible avatar Apr 24 '18 00:04 kellpossible

While building support for cross-referencing I ran into this limitation https://github.com/kellpossible/mkdocs-combine/issues/3

kellpossible avatar Apr 25 '18 05:04 kellpossible

Note this project:

https://github.com/shauser/mkdocs-pdf-export-plugin

it may be better architecturally since it's a new-style MkDocs plugin so MkDocs does all the heavylifting. I'll probably retire this project and replace it with a fork of that other one.

twardoch avatar Jun 05 '18 08:06 twardoch