logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Markdent::Dialect::Standard - Markdown as defined by John Gruber

Author

       Dave Rolsky, <autarch@urth.org>

Bugs

       See Markdent for bug reporting details.

Description

       The "Standard" dialect is plain Markdown as defined by John Gruber
       (<http://daringfireball.net/projects/markdown/>) and as implemented by Dingus
       (<http://daringfireball.net/projects/markdown/dingus>).

       This is the default dialect, so you do not need to ask for it explicitly.

   DEVIATIONS
       The Standard dialect as implemented by Markdent differs from Dingus in a few ways:

       •   HTML  attribute  quote delimiters are not preserved, so a single quote may be converted into a double
           quote.

       •   Whitespace on an empty line in a code block is preserved by Markdent, but not by Dingus.

       •   Markdent will not generate bad HTML from Markdown markup. Markdent does not allow  unbalanced  markup
           events to propagate, and will turn unbalanced events into plain text.

           Here is an example:

             *em **strong* wtf**

           Dingus turns this into:

             <p><em>em <strong>strong</em> wtf</strong></p>

           Markdent's HTML output for the same:

             <p><em>em **strong</em> wtf**</p>

           Note  that with inline HTML, Markdent echoes it more or less as-is, so you can still produce bad HTML
           with Markdent.

Name

       Markdent::Dialect::Standard - Markdown as defined by John Gruber

Synopsis

         use Markdent::Parser;

         my $parser = Markdent::Parser->new( handler => ... );

See Also