markdown buglets

Aaron Swartz me at aaronsw.com
Wed Dec 31 13:06:00 EST 2003


It's interesting that the SmartyPants readme would be valid Markdown 
except for these problems. (Keep reading, many bugs are reported.)

The first paragraph doesn't get an automatic <br /> because you hate 
me. ;-)

In:

{
*   Straight quotes ( " and ' ) into "curly" quote HTML entities

*   Backticks-style quotes (``like this'') into "curly" quote HTML
     entities

*   Dashes ("--" and "---") into en- and em-dash entities
}

for some reason the second line gets {<li><blockquote>}ed.

For some other strange reason, when you type the above as:

{*   Straight quotes ( " and ' ) into "curly" quote HTML entities

*   Backticks-style quotes (``like this'') into "curly" quote HTML
     entities

*   Dashes ("--" and "---") into en- and em-dash entities}

the first newline disappears.

Things aren't escaped.

>  On Mac OS X, this should be:
>
>         BBEdit Support:Unix Support:Unix Filters:

Shouldn't those be /s not :s?

Links don't work over newlines:

{
A [foo
bar baz] [2] monkey frob.

     [2]: http://monkey.oth/
}

All the list items are blockquoted for some reason, so the list 
blockquotes don't work.

Things like saying smarty_pants annoyingly trigger the emphasis, even 
when it's the only _ in the paragraph. In atx I had a word boundary 
restriction so that em only matched within a paragraph at the beginning 
and end of a word. (Within a word you wouldn't have this requirement, 
and cross-paragraph ems weren't allowed at all (seems right to me, 
since they're bad HTML) so you wouldn't have this problem.)

+ isn't a valid bullet character AFAIK.
-- 
Aaron Swartz: http://www.aaronsw.com/



More information about the Markdown-discuss mailing list