Hi
Thanks for the prompt response.
On Tue, 2018-11-13 at 22:51 +0100, BP Jonsson wrote:
Pandoc doesn't preserve any info about the number of blank lines in the input, i.e. two newlines, three newlines or more are equivalent and just register as a paragraph/other block break.
oh
I suppose you know that you simply can type `\medskip` in a paragraph on its own? It will be passed through unchanged to LaTeX output and ignored in other ourput formats.
Yes, I was aware. But I am trying to have other non-LaTeX people to switch to pandoc and a double separation lines seemed a good way of using LaTeX tricks to impress them.
If you want similar behavior in HTML output you can have a filter intercept RawBlock elements with format `latex` and text `\medakip` and insert e.g. a span with suitable CSS styling. I do something similar with `\newpage` even in DOCX output.
can you post this sample filter?
If you don't like the raw LaTeX but don't otherwise use horizontal rules you could put a horizontal rule where you want a medskip and use a filter to replace HorizontalRule elements with latex RawBlock elements with content `\medakip` for LaTeX output, or to remove them in HTML output.
seems a good solution
Hello all
Is there anyone out there who can tell me how to write a Lua filter such that if two markdown paragraphs are separated by two (three) blank lines in the input then a LaTeX \medskip (\bigskip) command is inserted into the output?
Thanks
--
jeremy theler