mdiep / MMMarkdown

An Objective-C framework for converting Markdown to HTML.
MIT License
1.25k stars 168 forks source link

Missing block quote? #80

Closed messiach closed 9 years ago

messiach commented 9 years ago

Block quoting with '>' seems not to work.

Example:

Markdown:

This is a quote from a previous reply or comment. Now this is my response to that quote.

Should be rendered as:

This is a quote from a previous reply or comment. Now this is my response to that quote.

MMMarkdown results are the same - the block quote isn't handled, it's simply reprinted as is.

mdiep commented 9 years ago

With this input:

> This is a quote from a previous reply or comment.
Now this is my response to that quote.

I get this output:

<blockquote>
<p>This is a quote from a previous reply or comment.
Now this is my response to that quote.</p>
</blockquote>

This matches the behavior of GitHub.com and most other Markdown implementations. Are you getting different output? Or are you expecting different output?

messiach commented 9 years ago

Sorry this turned out to be an implementation detail - the text I have to convert has html entities (>). MMMarkdown will skip those unless I decode them first - but of course I can't set the attributedText property of my UITextView unless I convert again what's provided by MMMarkdown (which ends up looking incorrect - line breaks missing - and is slow).