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


tis 13 nov. 2018 kl. 22:20 skrev Jeremy Theler <jeremy-24em0bpozeFWk0Htik3J/w@public.gmane.org>:
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


--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1542147146.3901.1.camel%40seamplex.com.
For more options, visit https://groups.google.com/d/optout.