Add option break_at_newlines to be more like Gihub-flavoured Markdown #17

Open
wants to merge 1 commit into
from

Projects

None yet

1 participant

@doherty

This implements newline handling somewhat like the description of
Github-flavoured Markdown, described at http://github.github.com/github-flavored-markdown/

Normal markdown (and, until now, Text::MultiMarkdown) allows you
to hard-wrap text. Markdown will combine those lines into a single
paragraph of text. With break_at_newlines, Text::MultiMarkdown will
treat newlines in your text blocks as real line breaks.

The markdown

one
two

was once rendered as

<p>one
two</p>

which will be one paragraph in your browser - but with break_at_newlines,
will now be:

<p>one <br />
two  </p>

which will be two paragraphs in your browser.

The default for break_at_newlines is off.

This resolves GH #16.

Thanks to Clinton Gormley for coding this up - see bobtfish/text-markdown#15

@doherty doherty Add option break_at_newlines to be more like Gihub-flavoured Markdown
This implements newline handling somewhat like the description of
Github-flavoured Markdown, described at http://github.github.com/github-flavored-markdown/

Normal markdown (and, until now, Text::MultiMarkdown) allows you
to hard-wrap text. Markdown will combine those lines into a single
paragraph of text. With break_at_newlines, Text::MultiMarkdown will
treat newlines in your text blocks as real line breaks.

The markdown

    one
    two

was once rendered as

    <p>one
    two</p>

which will be one paragraph in your browser - but with break_at_newlines,
will now be:

    <p>one <br />
    two  </p>

which will be two paragraphs in your browser.

The default for break_at_newlines is off.

This resolves GH #16.

Thanks to Clinton Gormley for coding this up - see bobtfish/text-markdown#15
480bcdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment