-
-
21 Mar 2021 15:16:41 UTC
- Distribution: Markdent
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (224 / 0 / 2)
- Kwalitee
Bus factor: 1- 89.27% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (124.97KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 9 contributors-
Andrew Speer
-
Denis Ibaev
-
Jason McIntosh
-
Jonas Smedegaard
-
Konrad Bucheli
-
Polina Shubina
-
Shlomi Fish
-
Stefan Hornburg (Racke)
-
Tom Hukins
- Dependencies
- Digest::SHA
- Encode
- Exporter
- File::Slurper
- Getopt::Long::Descriptive
- HTML::Entities
- IO::Handle
- List::AllUtils
- Module::Runtime
- Moose
- Moose::Meta::Class
- Moose::Role
- MooseX::Getopt::Dashes
- MooseX::Getopt::OptionTypeMap
- MooseX::Role::Parameterized
- MooseX::SemiAffordanceAccessor
- MooseX::StrictConstructor
- Params::ValidationCompiler
- Scalar::Util
- Specio::Declare
- Specio::Exporter
- Specio::Library::Builtins
- Specio::Library::Numeric
- Tree::Simple
- Try::Tiny
- base
- namespace::autoclean
- parent
- re
- strict
- warnings
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Markdent::Dialect::Theory - Markdown extensions proposed by David Wheeler (aka Theory)
SYNOPSIS
use Markdent::Parser; my $parser = Markdent::Parser->new( dialects => 'Theory', handler => ... );
DESCRIPTION
The Theory roles add parsing for Markdown extensions proposed by David Wheeler (aka Theory). See http://justatheory.com/computers/markup/markdown-table-rfc.html and http://justatheory.com/computers/markup/modest-markdown-proposal.html for details.
DEVIATIONS
The dialect differs from David Wheeler's proposals in a few ways. Most of these deviations were discussed with David Wheeler and included with his approval.
The header's "marker" row can use "+====+" as well as "+----+":
| Header 1 | Header 2 | +==========+==========+ | Body 1 | Body 2 |
The table does not require a header:
| Body 1 | Body 2 | | Body 3 | Body 4 |
You can include a header marker at the beginning and/or end of the table. This matches how MySQL outputs tables from its CLI tool.
+------+-------------+------------------------------+--------+ | id | name | description | price | +------+-------------+------------------------------+--------+ | 1 | gizmo | Takes care of the doohickies | 1.99 | | 2 | doodad | Collects *gizmos* | 23.80 | | 10 | dojigger | Foo | 102.98 | | 1024 | thingamabob | Self-explanatory, no? | 0.99 | +------+-------------+------------------------------+--------+
Currently it just does tables, not definition lists. This will be fixed in a future release.
Table continuation lines are expected to have the same number of cells as the line being continued. In other words, this doesn't work:
| cell1 | cell2 | : continues
Instead, you must write this:
| cell1 | cell2 | : : continues :
This is not an approved deviation, and may be corrected in a future release if I can figure out how to do so (patches welcome).
BUGS
See Markdent for bug reporting details.
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.
Module Install Instructions
To install Markdent, copy and paste the appropriate command in to your terminal.
cpanm Markdent
perl -MCPAN -e shell install Markdent
For more information on module installation, please visit the detailed CPAN module installation guide.