msmid / markdown2docbook

Conversion tool for transforming markdown text files to DocBook/HTML documents. Project is based on XSLT 2.0 technology.
MIT License
21 stars 6 forks source link

First step - parsing separate paragraphs #24

Closed msmid closed 10 years ago

msmid commented 10 years ago

Blanklines between paragraphs divides text into separate paragraphs.

md2doc:parsing-paragraphs now just trim and wrap all text into <p>

Correct output on given source

Paragraph
with line

Separate paragraph

is

<p>Paragraph
with line</p>

<p>Separate paragraph</p>
msmid commented 10 years ago

Solved. Text is tokenized by \n{2,} and trimmed and wrapped with <p>