Markde...tandard(3pm)

πŸ“¦
version 0.40 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

Markdent::Dialect::Standard β€” it's Markdown, bestie. Specifically the plain Markdown as defined by John Gruber. No extra toppings, no sprinkles, just the classic. πŸŽ€


✨ SYNOPSIS ✨

use Markdent::Parser;

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

🌸 DESCRIPTION 🌸

Okay so the "Standard" dialect is literally just plain Markdown β€” the way John Gruber defined it (<http://daringfireball.net/projects/markdown/>) and the way Dingus implements it (<http://daringfireball.net/projects/markdown/dingus>). That's it. That's the whole vibe. πŸ¦‹

And here's the tea: this is the default dialect, so you don't even have to ask for it. It's just there, showing up uninvited but in a cute way. πŸ’…

πŸ‘€ DEVIATIONS πŸ‘€

The Standard dialect as implemented by Markdent is not a perfect copy of Dingus, and ngl there are a few ways they differ:

  • HTML attribute quote delimiters are not preserved, so a single quote may get converted into a double quote. It's giving ✨glow-up✨ but for punctuation.
  • Whitespace on an empty line in a code block? Markdent keeps it. Dingus does not. Markdent said "I'm preserving the vibes." πŸ’€
  • Markdent will not generate bad HTML from Markdown markup. It does not allow unbalanced markup events to propagate β€” instead it turns those unbalanced events into plain text. Iconic behaviour, fr fr.

Here's an example so you can see it with your own eyes:

*em **strong* wtf**

Dingus turns that into:

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

Markdent's HTML output for the same input:

<p><em>em **strong</em> wtf**</p>
πŸ™ˆ But wait β€” when it comes to inline HTML, Markdent echoes it more or less as-is, so you can still produce bad HTML with Markdent. She's not your babysitter, she's just doing her best.

πŸ’€ BUGS πŸ’€

See Markdent for bug reporting details. Go tell on it, bestie.


πŸ‘‘ AUTHOR πŸ‘‘

Dave Rolsky, <autarch@urth.org>


Copyright 2009-2012 Dave Rolsky, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


perl v5.32.1 Β· 2021-08-31 β€” that's the version and the date, mwah πŸ’‹ thanks for reading, bestie, go write some Markdown πŸ§šπŸ’œ

πŸ“¦ where this page comes from