Overhaul support for emphasis (*foo*
and _foo_
) and strong emphasis (**foo**
and __foo__
), dramatically improving CommonMark compliance.
Improve support for tab characters, and horizontal rules.
The above fixes raise compliance with the CommonMark specs to 90%, and compliance with the GFM specs to 87%.
Allow the binary script to take a --extension-set
option.
A reminder: You can run bin/markdown.dart
from anywhere via:
$ pub global activate markdown $ markdown
gitHubWeb
extension set.gitHub
ExtensionSet into two sets: gitHubFlavored
, which represents the GitHub Flavored Markdown spec, and gitHubWeb
, which represents what GitHub actually renders Markdown.accept
could cause an exception.escapeHtml
function.ExtensionSet.gitHub
to more closely align with GitHub markdown.escapeHtml
. This code exists in dart:convert
.dart bin/markdown.dart --version
now shows the package version number.TableSyntax
.ExtensionSet.gitHub
.tool/travis.sh
.tool/common_mark_stats.dart
, which resulted in a dramatic overestimate of our CommonMark compliance.[ ... ]
syntax when no resolver is specified (#92).code
element with a language-
prefix.![text](img.png)
would compile too <a href="img.prg"><img src="img.prg" alt="text"></img></a>
. That same code will now compile to <img src="img.png" alt="text" />
.[foo] (bar)
no longer renders as an inline link (#53).markdownToHtml()
and new Document()
will use the default extension set, which is ExtensionSet.commonMark
, which includes FencedCodeBlock.[foo]()
now renders as an inline link.[foo]\(bar) ==> <p>[foo](bar)</p>
.\\\n
or \n (#30, #60).peek(int linesAhead)
, meant for use in subclasses.blocksInList
and determineBlockItems()
, meant for use in subclasses.LinkSyntax.resolved
, InlineParser.currentSource
.Formatted code.
Updated readme.