pandoc / lua-filters

A collection of lua filters for pandoc
MIT License
611 stars 166 forks source link

Add asciidoc format to pagebreak.lua #123

Closed niszet closed 4 years ago

niszet commented 4 years ago

For asciidoc and asciidoctor format, pagebrek.lua is updated. Syntax is from AsciiDoc Syntax Quick Reference. https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#breaks Currently, RawBlock in AsciiDoc Writer does not add new lines. So, this update have "\n\n" to separate paragraphs.

niszet commented 4 years ago

I tried to add a test for asciidoc.

tarleb commented 4 years ago

Sorry, I merge another PR which caused a merge conflict. Could you rebase to the current master? We should probably also mention asciidoc support in the README.

niszet commented 4 years ago

OK, no problem. I will rebase and update.

niszet commented 4 years ago

I rebased. If any problem remains, I will update again.

tarleb commented 4 years ago

Thanks!