Commonmark

Latest version: v0.9.1

Safety actively analyzes 625645 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

0.25.0

* [API change] Added abstract renderer; adjusted HTML renderer to use
its prototype (muji, jgm).
* Fix tabs in list indentation (86). This fixes `advanceOffset`
to better handle cases where a list indent doesn't consume all of
the virtual spaces represented by a tab.
* Proper tab handling with blockquotes, fenced code, lists.
* Fixed handling of partially consumed tabs.
* Fixed logic bug with blank line after empty list item (78).
* Ensured render directory is installed by npm (muji).
* Better ECMAScript 5 style inheritance (muji).
* Don't require sudo for make bench.
* Added command line usage (Daniel Baird).
* Brought CLI options in line with cmark. Now you say `-t xml`
instead of `--xml`.
* Use minima for cli option parsing, add `--help` (81).
* Tweaked description of commonmark program. Now that we have `--help`
we can forego a detailed description of options.

0.24.0

* [API change] Added version.
* Added `--version` to cli program.
* Updated spec.txt to 0.24.
* Updated test runner to new spec format.
* Allow multiline setext header content.
* Don't allow spaces in link destinations, even in `<>`.
* Updated recognizer for absolute URIs...
We no longer use a whitelist of valid schemes.
* Remove unused variable `markerStartCol` (Nik Nyby).
* Fix inaccurate comment about `closeUnmatchedBlocks` (Nik Nyby).
This function is void, and doesn't return true.

0.23.0

* [API change] Rename nodes: "Html" -> "HtmlInline" (63).
* [API change] Add `CustomBlock`, `CustomInline`.
* [API change] Rename "HorizontalRule" -> "ThematicBreak".
* [API change] Rename "Header" -> "Heading" (spec change).
* Don't allow whitespace between link text and link label
of a reference link (spec change.)
* Fixed calculation of list offsets (59).
* Allow tab after bullet list marker (59).
* `advanceOffset` - copy the code from `libcmark`.
* Fixed a list/tab/padding corner case (59).
* Escape HTML contents in xml output, as the DTD requires PCDATA.
* xml renderer - added xmlns attribute (jgm/CommonMark87).
* Test on node.js 5.x and 4.x (Nik Nyby). Remove testing on iojs.
* Initialize `_listData` to `{}` when creating `Node` (74).
* Added version check for uglify; updated dist files (69).
* Fix typo in breakOutOfLists description (Nik Nyby).
* Updated benchmarks in README.md.

0.22.1

* README: Use an https URL for commonmark.js (71).
* README: Fixed typo (70).
* Reset `container` after closing containing lists (67).
* Use mdurl 1.0.1, to avoid problems with Google closure
compiler (66).
* Adjusted .npmignore so the package doesn't include
extraneous files (72, Hypercubed).

0.22.0

* Added `iframe` to whitelist of HTML block tags (as per spec).
* Removed `pre` from rule 6 of html blocks (see jgm/CommonMark355).
* Fixed logic error in calculation of offset. Here's a test case this
fixes:

% echo -en "1. \t\tthere" | bin/commonmark
<ol>
<li>
<pre><code>ere
</code></pre>
</li>
</ol>

* Disallow list item starting with multiple blank lines
(jgm/CommonMark332).
* Fixed bug in list-start parser (60).
* Changed smart quote algorithm to agree with cmark (61). The change only
involves double quotes, which now need to be both left flanking and
not right flanking to count as "can open."
* Fix replacement of multiple apostrophes in the same paragraph with
`--smart` (Brandon Frohs).
* `make bench`: renice to -10 rather than 99.

0.21.0

* Updated to version 0.21 of spec.
* Implemented `safe` option. This suppresses output of raw
HTML and potentially unsafe URLs.
* Documented `smart` option.
* Allow non-initial hyphens in html tag names.
This allows for custom tags, which in HTML5 MUST contain
a hyphen. See jgm/CommonMark239.
* Revised HTML block parsing to conform to new spec.
* Imposed 9-digit limit on ordered list markers, per spec.
* Improved `smart_punct.txt` tests, and added some commentary
(a proto-spec).
* Improved `smart` handling of dashes. We now process
whole strings of hyphens in such a way as to ensure that
we don't get a mix of hyphens and em and en dashes (56,
Brandon Frohs).
* Dingus: Removed duplicated CSS line (Aurelio Jargas).
* Dingus: Make permalink record whether 'smart' was selected (55).
* Dingus: Removed Makefile dependency on `html5-entities.js`.
* Reset options before calling `inlineParser`.
Otherwise, if the main parser's options have changed since
it was instantiated, the new options won't be visible to
the `inlineParser`.
* Properly split on whitespace in HTML renderer (54).
* Fixed bench for new version of showdown (soomtong).
* `processEmphasis`: renamed `potential_openers` -> `openers_bottom`,
better logic for setting lower bound in `openers_bottom`.
* Fixed emphasis/link parsing bug (50).
* Reset `this.column` on new parse.
* Fixed test runner to handle visible tabs in spec HTML.
* Improved detection of column with tabs in input. Added
`advanceNextNonspace` and `advanceOffset` functions.
* Removed `detabLine` and tabs-to-spaces conversion.
* Added `column` and `nextNonspaceColumn` to parser.
Adjust these in `findNextNonspace`.
* Added note on README about how to fetch dependencies.
* Fix link reference definition edge case (Benjamin Dumke-
von der Ehe). If the reference seems to have a valid title
that does not go until the end of the line, check if the
reference becomes valid when discarding the title.
* Fixed link label recognizer. Allow a backslash-escaped
backslash (38).
* Use `mdurl` instead of copied `encode.js`, `decode.js`.
* Use `entities` from npm instead of `html5-entities.js`.
* Rewrote `findNextNonspace` for speed.
* Remove delimiters as soon as we see that they don't match
anything (43). This fixes a performance bug for things like
`"a_ " * 20000`.
* Improved efficiency of `processEmphasis` (43). Don't look
for openers again when we've already searched for openers
of a certain type.
* Allow literal (non-escaping) backslashes in link destinations
(Benjamin Dumke-von der Ehe).
* Added several pathological tests (43).
* Don't consider images to be self-closing in the XML writer
(Benjamin Dumke-von der Ehe). Image nodes in a CommonMark AST
are containers, and as such the XML writer will always output
a closing tag.

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.