fletcher / MultiMarkdown-4

This project is now deprecated. Please use MultiMarkdown-6 instead!
https://github.com/fletcher/MultiMarkdown-5
Other
307 stars 59 forks source link

escaped line breaks not work in latex titles? #78

Closed rebcabin closed 10 years ago

rebcabin commented 10 years ago

Following these instructions

http://fletcher.github.io/MultiMarkdown-4/escaped-newlines

I tried a sample

latex input:        mmd-article-header  
Title:          Videtur quod est super.\
Quis transfretavit tu iratus\
Et quod tu es?
Author:                 Foo'ad Bar Bazquux
Base Header Level:  2  
latex mode:     memoir  
Keywords:       MultiMarkdown, Markdown, XML, XHTML, XSLT, PDF  
CSS:            http://fletcherpenney.net/css/document.css  
xhtml header:       <script type="text/javascript "src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>  
latex input:        mmd-natbib-plain  
latex input:        mmd-article-begin-doc  
latex footer:       mmd-memoir-footer  

# Suspicio? Bene ... tunc ibimus?

Ludum mutavit. Verbum est ex. Et ... sunt occidat. Videtur quod est
super omne oppidum. Quis transfretavit tu iratus es contudit cranium cum
dolor apparatus. Qui curis! Modo nobis certamen est, qui non credunt at.

and then

multimarkdown --escaped-line-breaks -t latex foo.md > foo.tex && pdflatex foo.tex && open foo.pdf

but the title did not have line-breaks in it. Doubling the backslashes (a-la LaTeX) did not work. \linebreak and \pagebreak LaTeX commands didn't work. I gave up guessing and thought I'd file an issue :)

fletcher commented 10 years ago

(Multi)Markdown syntax is not interpreted inside metadata -- it would get too messy and inconsistent.

Use the latex title metadata:

http://fletcher.github.io/MultiMarkdown-4/metadata#latextitle