summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-09JS linter cleanups.John MacFarlane
2015-01-09Minor code reformatting.John MacFarlane
2015-01-09Use linked list instead of arrays for AST.John MacFarlane
Use the same doubly linked node structure that cmark uses. The primary advantages of this change are (a) simplified code, especially in the renderers, and (b) elimination of the need for recursion, so we can render deeply-nested structures without a stack overflow. A node walker has also been added, for easy AST traversal. * Added js/lib/node.js for nodes. Includes a node walker. * All modules updated to use node structures. * Regularized position information into pos property. * Performance is slightly worse than before, but only marginally, and no doubt there are more optimizations that can be done.
2015-01-09js/bench.js: use npm, added markdown-it.John MacFarlane
2015-01-09xml writer: add list attributes.John MacFarlane
2015-01-08Added `cmark_iter_reset` and a note about handling destructive updates.John MacFarlane
2015-01-07js: Use children instead of inline_content for Paragraph.John MacFarlane
2015-01-07js: Use children rather than 'c' for Emph and Strong contents.John MacFarlane
Now we use 'children' uniformly, in both inlines and blocks, for child nodes.
2015-01-07js: Changed 'label' in Link, Image to 'children'.John MacFarlane
This matches the C impl. Also removed an unused property.
2015-01-07Fixed 'make alltest.md'.John MacFarlane
2015-01-07cmark: Add function & option to normalize text nodes.John MacFarlane
So, instead of <text>Hi</text> <text>&amp;</text> <text>lo</text> we get <text>Hi&amp;lo</text> * Added exported `cmark_consolidate_text_nodes` function. * Added `CMARK_OPT_NORMALIZE` to options. * Added optional normalization in XML writer. * Added `--normalize` option to command-line program. * Updated man page.
2015-01-07Merge pull request #273 from zmwangx/masterJohn MacFarlane
Fix typo in README.md
2015-01-06Fixed typo in README.mdZhiming Wang
2015-01-06Merge pull request #269 from jgm/licenseVicent Marti
Updated LICENSE, renamed to COPYING.
2015-01-06COPYING: record that utf8.* derived from utf8proc.John MacFarlane
2015-01-06Updated COPYING to include copyright for utf8proc.John MacFarlane
2015-01-05Clarify that brackets in general don't take precedence over emph.John MacFarlane
Closes #258.
2015-01-05Clarify that final newline is removed from paragraph content.John MacFarlane
Closes #176.
2015-01-05Talk of "info string" rather than "attributes" for code blocks.John MacFarlane
Closes #262.
2015-01-05Clarified precedence of code spans, HTML tags, autolinks.John MacFarlane
Closes #259.
2015-01-05Reformatted code consistently with astyle.John MacFarlane
2015-01-05Added 'make astyle' to reformat code consistently.John MacFarlane
2015-01-05Updated LICENSE, renamed to COPYING.John MacFarlane
This update clarifies the provenance and license of buffer.h, buffer.c, chunk.h, utf8.h, utf8.c. @vmg certifies by merging this PR that the license and copyright information are accurate.
2015-01-05Fixed a number of links in spec.John MacFarlane
2015-01-05makespec.py: put pluralizing s inside link for better visuals.John MacFarlane
2015-01-05makespec.py: put ids on headers, not separate anchor.John MacFarlane
2015-01-04Removed pandoc from travis build deps.John MacFarlane
2015-01-04Strip {-} off unnumbered sections in HTML version of spec.John MacFarlane
2015-01-04Moved spec.html error checks into makespec.py.John MacFarlane
2015-01-04Fixed spec.pdf target.John MacFarlane
2015-01-04Fixed some duplicate references.John MacFarlane
2015-01-04Removed second parameter of makespec.py.John MacFarlane
2015-01-04Use cmark itself to build spec.html.John MacFarlane
Removes build dependency on pandoc. Closes #256. Note: we have lost "smart punctuation," but we can either (a) add an option to do this in the cmark renderer, or (b) insert unicode punctuation in the spec as needed. Not an urgent issue in any case.
2015-01-04makespec.py: create toc without relying on pandoc.John MacFarlane
We're still using pandoc, but this is one step closer to using cmark to build spec.html.
2015-01-04Improved spec.pdf production.John MacFarlane
Boldface definitions.
2015-01-04spec2md.py -> makespec.py.John MacFarlane
Moved HTML generation out of Makefile.
2015-01-04Linkify "info string" in spec.John MacFarlane
2015-01-04Use shortcut reference links when possible in spec.txt.John MacFarlane
This relies on the new spec2md.py behavior of creating reference links for all internal anchors.
2015-01-04xml writer - fixed issues with empty images.John MacFarlane
2015-01-04Improved DTD readability with entities.John MacFarlane
2015-01-03spec2md.py: Add reference link definitions for internal anchors.John MacFarlane
We can use this to simplify spec.txt, using `[whitespace]` instead of `[whitespace](#whitespace)`, for example.
2015-01-03Rewrote spec2md in python.John MacFarlane
Better to only require python, not python and perl.
2015-01-03Fixed CDATA regex in js.John MacFarlane
Closes #267.
2015-01-03Moved non-comment examples (1e789d0f) to inline tag section.John MacFarlane
That's where they properly belong, since we deal with comments differently in blocks.
2015-01-03Improved js regex for html comments.John MacFarlane
Closes #263. Note, this only affects inline comments. With block comments we parse differently, and don't guarantee that only valid HTML5 comments will pass. This all needs to be made more explicit in the spec. However, this fix addresses the cpu problem.
2015-01-03scanners.re: More accurate regex for HTML comments.John MacFarlane
Note: this only affects inline parsing. Block parsing is handled differently.
2015-01-03spec: Added examples of non-comments.John MacFarlane
See #264.
2015-01-03spec: use HTML5 spec's rule for HTML comments.John MacFarlane
2015-01-03Make clear that any sequence of characters is a valid document.John MacFarlane
Closes #266 in a slightly different way than @anko's PR.
2015-01-03Spec: "is preferred" -> "takes precedence".John MacFarlane