Markde...tandard(3pm)
π 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 & LICENSE π«Ά
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
- debian bookworm: libmarkdent-perl 0.40-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmarkdent-perl 0.40-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmarkdent-perl 0.40-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms