[0.18.0]
nextNonspace
, blank
, indent
properties to Parser
.findNextNonspace
.blockStarts
property of Parser
. Now
almost all block-specific material has been moved out of
incorporateLine
.addLine
.matchAt
.entityToChar
charCodeAt
in a few places where charAt
was used.peek()
function in blocks. This ensures we check bounds
before calling charCodeAt
.peek
instead of raw charCodeAt
in inlines.js
.dingus.html
into separate file dingus.js
.dingus.css
.dingus/
directory. dingus/Makefile
builds commonmark.js
in the dingus directory. So to deploy,
you just need to copy the dingus directory.reNonSpace
for new whitespace definition in spec.options
param to InlineParser. options.smart
triggers
smart punctuation parsing.--smart
option to bin/commonmark.handleEmphasis
-> handleDelims
.smart
.smart
to dingus.isContainer
a getter to conform to README (#7).isContainer
in XML writer.
isContainer
is now a getter, not a function.[0.17.1]
blocks
property of the parser that contains information
about each type of block, which is used in parsing. Ultimately
this will make it easier to extend the library, but the project
is still only partially completed.bower.json
. Bower takes version from tags._string_content
to null after using, allowing it to be GCd._strings
; just append to _string_content
.
This gives better performance with v8.sourcepos
attribute, not data-sourcepos
.[0.17.0]
DocParser
-> Parser
.
Note: library users should update their code or it will break.normalize-reference.js
. This does a proper unicode case
fold instead of just using toUpperCase
. It is also faster,
partly because we can do one pass for space and case normalization.blocks.js
.ReferenceDef
node type.Node.toObject()
.bullet_char
-> bulletChar
.tight=true
in finalize
.
We do that when the listData
object is initialized.offset
property to DocParser
. Use this in addLine
,
instead of offset
parameter, which has been removed._
.html.js
- explicitly specify second parameter of escapeXml
.addChild
with three arguments (Robin Stocker).lastLineLength
before returning after close fence.lastLineBlank
up through parents.
Previously we just kept it set on the bottom child.
But this will give a quicker determination of lastLineBlank
.blocks
property
of Parser
. This is a first step towards keeping the code for
each kind of block in a central place, rather than spread all over
the code base. This is preparatory for a more modular structure,
where each type of block has a record describing how it is parsed and
finalized. Eventually this will also contain functions for checking for
a block start, and metadata that determines how line data
should be handled.currentLine
property to Parser
.first_nonspace
-> next_nonspace
.commonmark.js
in dist/
rather than js/
.make bench-detailed
).dist/commonmark.js
to repo (for bower).bower.json
(jgm/CommonMark#288).node --trace-deopt
.CONTRIBUTING.md
..travis.yml
to test against various node versions.changelog.js.txt
-> changelog.txt
.[0.16]
children
instead of label
(in Image and Link),
inline_content
(in Paragraph), and c
(in Emph and Strong).c
property to literal
to match libcmark
.literal
rather than string_content
property for code
blocks, HTML. string_content
is reserved for raw string
content that has yet to be parsed as inlines.node.js
).sourcepos
property.
Added end column information.html-renderer.js
to html.js
.tight
a property of list_data
rather than Node
.--sourcepos
command line option to js/bin/commonmark
.ansi.js
code from the source tree. The test suite now
uses its own mini ansi colors implementation.--time
option to js/bin/commonmark
.Commonmark.dtd
).url
property to destination
to match cmark
and spec.js/common.js
to hold some common code, like string
unescaping and URI normalization.decodeURI
instead of unescape
.