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. 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. 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. 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. tis 13 nov. 2018 kl. 22:20 skrev Jeremy Theler : > 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 > www.seamplex.com > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/1542144045.2173.3.camel%40seamplex.com > > . > For more options, visit https://groups.google.com/d/optout. > -- ------------------------------ SavedURI :Show URLShow URLSavedURI : SavedURI :Hide URLHide URLSavedURI : https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.sv.G3GZFwvcniQ.O/m=m_i,t,it/am=fUAcTAoZawdGHAZ2YD-g9N_f7LL4CX7WlSgHQKgABHaCv9kToPiBD8qOMw/rt=h/d=1/rs=AItRSTO5CF1YB_frDRXLXTeUsQ1zItcBvwhttps://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.sv.G3GZFwvcniQ.O/m=m_i,t,it/am=fUAcTAoZawdGHAZ2YD-g9N_f7LL4CX7WlSgHQKgABHaCv9kToPiBD8qOMw/rt=h/d=1/rs=AItRSTO5CF1YB_frDRXLXTeUsQ1zItcBvw ------------------------------ -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuRxziHqR%3DK0ed5tCZ3FszLxV9k1JwTEgjNnOfOL_ZAPMg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.