summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2015-01-16Check for blank line before checking indent in Item.John MacFarlane
2015-01-16bin/commonmark: don't use the now-removed toObject for --ast.John MacFarlane
2015-01-16Rename bullet_char -> bulletChar.John MacFarlane
2015-01-15README.md: refer to js/README.md for details on JS implementation.John MacFarlane
2015-01-15Improved js README.md.John MacFarlane
Still much to do.
2015-01-15Provide getters and setters for public properties of Node.John MacFarlane
Everything else gets a name starting with an underscore and will be considered private. This will allow us to keep the API stable while changing the underlying data structure. And it will avoid exposing properties that have only an instrumental value in parsing.
2015-01-15Rename sourcepos -> _sourcepos, added sourcepos() accessor.John MacFarlane
2015-01-15Removed Node.toObject().John MacFarlane
2015-01-15Renamed .t to ._type to mark it as "hidden."John MacFarlane
2015-01-15Removed setType(), replaced getType() with type().John MacFarlane
2015-01-15eslint fix.John MacFarlane
2015-01-15eslint fixes.John MacFarlane
2015-01-15normalize-reference.js: disable eslint spacing warnings.John MacFarlane
2015-01-15Removed vestigial ReferenceDef node type.John MacFarlane
2015-01-15Added getType(), setType() to node.js.John MacFarlane
Use these instead of direct property access. This is the first step in a general move towards an API like the one libcmark has. This will allow us to have a stable API that is independent of details of the AST.
2015-01-15Removed artificial distinction btw FencedCode, IndentedCodeJohn MacFarlane
in blocks.js.
2015-01-15Added normalize-reference.js.John MacFarlane
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. Modified from the NPM package fold-case; proper credit given in source and COPYING.
2015-01-15Bump package.json version to 0.16.0.John MacFarlane
2015-01-14Added changelog.c.txt and js/changelog.js.txt.John MacFarlane
2015-01-14Slightly more efficient test for lazy continuation.John MacFarlane
2015-01-14Fixed minor linter issues.John MacFarlane
2015-01-14Added pathological tests to test.js.John MacFarlane
The nested brackets test reveals some issue there.
2015-01-14Added (still commented-out) pathological tests to test.js.John MacFarlane
2015-01-13Removed an implicit cast in node.js 'next'.John MacFarlane
2015-01-13Initialize fields in objects to null rather than undefined.John MacFarlane
Big speed boost.
2015-01-13blocks.js - avoid an implicit boolean cast.John MacFarlane
2015-01-13Simplified some of the new-block-start logic.John MacFarlane
2015-01-13Assign marker_offset to list data at initialization.John MacFarlane
2015-01-13last_matched_container -> lastMatchedContainer.John MacFarlane
2015-01-13Ensure that closeUnmatchedBlocks is not called unnecessarily.John MacFarlane
2015-01-13Fixed start column for blockquotes.John MacFarlane
2015-01-13Added lineNumber proper to DocParser.John MacFarlane
Removed lineNumber param from addChild and some other methods.
2015-01-12Made closeUnmatchedBlocks a method of DocParser...John MacFarlane
instead of a closure. Performance increase and code simplification.
2015-01-12Revert "Moved dingus to js directory."John MacFarlane
This reverts commit 5ddf8743f02132f07aad4bb27e0b84c530a706d7.
2015-01-12Moved eslint.json to js/ subdir.John MacFarlane
2015-01-12Moved dingus to js directory.John MacFarlane
2015-01-12Fixed ANSI color 'reset' in js/test.js.John MacFarlane
2015-01-12Wrap decodeURI in a try.John MacFarlane
This ensures that we return original content (unnormalized) rather than raising an exception for things like [foo](<&#x25;test>) Not sure if this is the best approach.
2015-01-12html.js, xml.js: avoid using concat.John MacFarlane
2015-01-12Use new with Document and NodeWalker constructors.John MacFarlane
2015-01-12js/bench.js: use capital letter for Showdown so eslint doesn't complain.John MacFarlane
2015-01-12Use decodeURI instead of the deprecated 'unescape'.John MacFarlane
<https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/unescape>
2015-01-12Fixed some linter errors.John MacFarlane
2015-01-12Moved "use strict" to top of modules.John MacFarlane
2015-01-11Moved common xml escaping code from xml.js, html.js to common.js.John MacFarlane
2015-01-11Factored out normalizeURI into a single function in common.js.John MacFarlane
This way we can change it without changing four separate places in the code.
2015-01-11Factored out unescapeString into new module, js/common.js.John MacFarlane
This is used in both blocks.js and inlines.js.
2015-01-11A few changes to JS so its xml matches cmark's.John MacFarlane
Always add '' as title property if title is not defined.
2015-01-11More xml.js improvements.John MacFarlane
2015-01-11Small improvements to xml.js.John MacFarlane