horizontal space/indent and HTML/PDF

John MacFarlane jgm at berkeley.edu
Tue Oct 30 14:56:48 EDT 2012


If you don't use emphasis or other inline formatting, it's
easiest to put this in a special fenced code block

~~~ {.poetry}
hickory dickory dock
the mouse ran up the clock
the clock struck one
the mouse ran down
~~~

And then use a CSS rule like

pre.poetry code { font-family: serif; }

Alternatively you can do this:

hickory dickory dock\
\ \ \ \ the mouse ran up the clock\
\ \ \ \ \ \ \ \ the clock struck one\
the mouse ran down

John


+++ Chris Lott [Oct 30 12 07:57 ]:

> What is the best method to introduce horizontal space in text in a

> Pandoc document? Preferably something that would work for both HTML

> and PDF output?

>

> I need this for some poetry that has indented lines, ala the 2nd and 3rd lines:

>

> hickory dickory dock

> the most ran up the clock

> the clock struck one

> the mouse ran down

>

> c

> --

> Chris Lott <chris at chrislott.org>

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss



More information about the Markdown-Discuss mailing list