Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-12 | Revert "Moved dingus to js directory." | John MacFarlane | |
This reverts commit 5ddf8743f02132f07aad4bb27e0b84c530a706d7. | |||
2015-01-12 | Moved eslint.json to js/ subdir. | John MacFarlane | |
2015-01-12 | Moved dingus to js directory. | John MacFarlane | |
2015-01-12 | Fixed ANSI color 'reset' in js/test.js. | John MacFarlane | |
2015-01-12 | Wrap decodeURI in a try. | John MacFarlane | |
This ensures that we return original content (unnormalized) rather than raising an exception for things like [foo](<%test>) Not sure if this is the best approach. | |||
2015-01-12 | html.js, xml.js: avoid using concat. | John MacFarlane | |
2015-01-12 | Use new with Document and NodeWalker constructors. | John MacFarlane | |
2015-01-12 | js/bench.js: use capital letter for Showdown so eslint doesn't complain. | John MacFarlane | |
2015-01-12 | Use decodeURI instead of the deprecated 'unescape'. | John MacFarlane | |
<https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/unescape> | |||
2015-01-12 | Fixed some linter errors. | John MacFarlane | |
2015-01-12 | Moved "use strict" to top of modules. | John MacFarlane | |
2015-01-11 | Moved common xml escaping code from xml.js, html.js to common.js. | John MacFarlane | |
2015-01-11 | Factored 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-11 | Factored out unescapeString into new module, js/common.js. | John MacFarlane | |
This is used in both blocks.js and inlines.js. | |||
2015-01-11 | A few changes to JS so its xml matches cmark's. | John MacFarlane | |
Always add '' as title property if title is not defined. | |||
2015-01-11 | More xml.js improvements. | John MacFarlane | |
2015-01-11 | Small improvements to xml.js. | John MacFarlane | |
2015-01-11 | js: 'ListItem' -> 'Item'. | John MacFarlane | |
2015-01-11 | node.js: toAST -> toObject. | John MacFarlane | |
2015-01-11 | Fixed url -> destination in xml.js. | John MacFarlane | |
2015-01-11 | node.js: Added title and destination to list of props to show in toAST. | John MacFarlane | |
2015-01-11 | Handle more attributes with xml.js. | John MacFarlane | |
2015-01-11 | XML writer - implemented list attributes. | John MacFarlane | |
2015-01-11 | XMLRenderer -> XmlRenderer. | John MacFarlane | |
For consistency with HtmlRenderer. I'm not sure which is best. | |||
2015-01-11 | Removed JS library's dependency on util. | John MacFarlane | |
This reduces js/commonmark.js size by 20K. | |||
2015-01-11 | xml.js: basic structure working. | John MacFarlane | |
Need to handle attributes. | |||
2015-01-11 | Start on xml.js. | John MacFarlane | |
Just the skeleton, mostly copied from HTML renderer. Can be simplified because of the regularity of the XML format. See #280. | |||
2015-01-11 | node.js: use switch instead of if-else. | John MacFarlane | |
2015-01-10 | More efficient detab. | John MacFarlane | |
2015-01-10 | Timings: added 'preparing input'. | John MacFarlane | |
2015-01-10 | Added options to DocParser. | John MacFarlane | |
So far only 'time' is supported. 'time' now gives a breakdown of block parsing, inline parsing, and rendering. Currently the ratio is block parsing: 725ms inline parsing: 332ms rendering: 213ms so perhaps block.js is the best place to look for further optimizations. | |||
2015-01-10 | Removed a redundant clause from switch statement. | John MacFarlane | |
Lines starting | |||
2015-01-10 | Added --time option to js/bin/commonmark. | John MacFarlane | |
2015-01-10 | Include a mini ansi implementation in test.js. | John MacFarlane | |
This way we don't need to depend on the ansi module at all. | |||
2015-01-10 | Removed ansi from js source tree. | John MacFarlane | |
Test suite will now use ansi if the package is installed, otherwise skip it. | |||
2015-01-10 | Made 'options' a parameter of the renderer constructors... | John MacFarlane | |
as opposed to the 'render' function. Added a 'colors' parameter for the ast renderer. | |||
2015-01-10 | Removed an unnecessary variable from cloneUnmatchedBlocks. | John MacFarlane | |
2015-01-10 | html.js: removed blocksep and innersep, no longer used. | John MacFarlane | |
2015-01-10 | HTML renderer: throw error on unknown tag type. | John MacFarlane | |
This indicates a programming error. | |||
2015-01-10 | Put another regex in a variable. | John MacFarlane | |
2015-01-10 | Another "test before replace" optimization. | John MacFarlane | |
2015-01-10 | Small performance optimization in dealing with final newline. | John MacFarlane | |
2015-01-10 | HTML renderer: Test for characters that need escaping before substituting. | John MacFarlane | |
2015-01-10 | More HTML rendering efficiency improvements. | John MacFarlane | |
2015-01-10 | Don't use array buffer in HTML rendering. | John MacFarlane | |
Use straight string `+=` instead. This is supposedly faster in browsers other than IE 7. | |||
2015-01-10 | Reordered some definitions, so regex is defined before being used. | John MacFarlane | |
2015-01-10 | Removed unused import. | John MacFarlane | |
2015-01-10 | Made Node a local variable. | John MacFarlane | |
2015-01-10 | Made NodeWalker a regular function returning an object. | John MacFarlane | |
2015-01-10 | Removed unnec. comment. | John MacFarlane | |