horizontal space/indent and HTML/PDF
contact at alanhogan.com
Tue Oct 30 14:28:28 EDT 2012
On Oct 30, 2012, at 11:23 AM, Koralatov <lists at koralatov.com> wrote:
> On Tue, Oct 30, 2012 at 15:57, Chris Lott wrote:
>> 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
>> hickory dickory dock
>> the most ran up the clock
>> the clock struck one
>> the mouse ran down
> The other suggestions are all better than the one I’m about to make, so
> consider yourself forewarned.
> I’m personally do it using code spaces, like so:
> hickory dickory dock ` `the most ran up the clock ` `the clock struck one the mouse ran down
> The spaces contained inside the code will be printed as they are, and it
> shouldn’t interfere with later Markdown syntax because they’re terminated
> already. It’s a pretty ugly, low-tech solution though.
If you are controlling the output HTML & PDF, this “won’t” be a problem,
but many stylesheets (such as my own) style such incline `<code>` elements
to have a slightly colored background. It is definitely an ugly solution
in that it does not produce portable or semantic output.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4887 bytes
Desc: not available
Url : <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20121030/5d4b7ba5/attachment.bin>
More information about the Markdown-Discuss