Markdent::Dialect::Standard(3pm)

Markdent::Dialect::Standard3pm

Markdown as defined by john gruber

Usage

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

Overview

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.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Bugs

See Markdent for bug reporting details.

Author

Dave Rolsky, <[email protected]>

From libmarkdent-perl 0.40-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.