Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-11-10 | Stack-based link handling in js. All tests pass. | John MacFarlane | |
2014-11-09 | Rewrote parseLink in js consistent with the C and spec. | John MacFarlane | |
2014-11-09 | Added processEmphasis, run at end of parseInlines. | John MacFarlane | |
2014-11-09 | Changed parseEmphasis to just put things on stack. | John MacFarlane | |
2014-11-06 | Updated js writer to render plain text for alt attributes of images. | John MacFarlane | |
2014-11-04 | Added packaging for npm module 'commonmark'. | John MacFarlane | |
Published to npm. Closes #21. The 'stmd' package should be deprecated. | |||
2014-11-03 | Removed artificial rule for emph/strong markers. | John MacFarlane | |
Previously there was a rule that nothing in a string of more than 3 `*` or `_` characters could close or start emphasis. This was artifical and led to strange asymmetries, e.g. you could have `*a *b**` emph within emph but not `**a **b****` strong within strong. The new parsing strategy makes it easy to remove this limitation. Spec, js, and c implementations have been updated. Spec might need some further grooming. | |||
2014-10-30 | js/lib/blocks: Made matchAt return -1 instead of null on no match. | John MacFarlane | |
2014-10-26 | Dingus improvements; moved to top level. | John MacFarlane | |
2014-10-26 | Added clear and permalink to dingus. | John MacFarlane | |
Serve dingus from dingus.html. Add redirect page as index.html. | |||
2014-10-26 | Require space before closing # sequence in ATX header. | John MacFarlane | |
Closes #169. | |||
2014-10-25 | Adjusted appearance of dingus. | John MacFarlane | |
2014-10-24 | Rename js/bin/markdown -> js/bin/commonmark. | John MacFarlane | |
2014-10-24 | js/bin/markdown: added `--ast` flag and multiple filename args. | John MacFarlane | |
2014-10-24 | Merge pull request #140 from arthur-peka/master | John MacFarlane | |
Changing some variable names to improve code readability | |||
2014-10-24 | More stmd -> commonmark changes. | John MacFarlane | |
2014-10-24 | Renamed javascript implementation to commonmark.js. | John MacFarlane | |
2014-10-24 | js: Removed memoization. | John MacFarlane | |
It is no longer needed with the new stack-based emphasis parsing. | |||
2014-10-24 | js: Use linked list instead of array for emphasis_openers stack. | John MacFarlane | |
2014-10-24 | js: renamed emph_stack -> emphasis_openers. | John MacFarlane | |
2014-10-23 | inlines.js: Implemented stack-based emph parsing. | John MacFarlane | |
2014-10-18 | Added renderAST to js, added AST render tab to dingus. | John MacFarlane | |
Modified processInlines so it creates new objects instead of modifying in place. This way we can remove the extraneous fields only needed for parsing. | |||
2014-10-18 | Add unescapeString as method of InlineParser. | John MacFarlane | |
2014-10-18 | Factored out blocks.js from index.js. | John MacFarlane | |
2014-10-18 | Factored out inlines.js from index.js. | John MacFarlane | |
2014-10-18 | Change from-code-point.js so it doesn't alter String prototype. | John MacFarlane | |
2014-10-18 | Use browserify to make js code more modular. | John MacFarlane | |
* Moved js library code to `js/lib`. * `js/stmd.js` is now generated from these files using browserify. * Factored out `html5-entities.js` and `from-code-point.js` from main js parsing code (which is now `index.js`). * Moved `js/markdown` to `js/bin`. | |||
2014-10-07 | Changed bench.js so it no longer requires oldtests. | John MacFarlane | |
2014-10-07 | Correct capitalization of JavaScript | Bengt Lüers | |
2014-10-07 | stmd.js: Fixed entityToChar, adding fromCodePoint polyfill. | John MacFarlane | |
Closes #151. | |||
2014-10-07 | Reset label_nest_level before parsing reference. | John MacFarlane | |
This fixes a bug with text like: [[some unrelated text [link] [link]: destination See #146. | |||
2014-10-04 | Further emph fallback optimizations. | John MacFarlane | |
2014-10-04 | Some jshint fixes. | John MacFarlane | |
2014-10-04 | Use simpler algorithm. | John MacFarlane | |
This handles things like `**hi***there*` and gives symmetrical treatment of `**hi*` and `*hi**`. Also handles the case from #147. | |||
2014-10-02 | Revert "Use integers instead of strings for tags." | John MacFarlane | |
This reverts commit ac611d51c9de9aa719b42b9463e6f28d6e7d74a4. | |||
2014-10-02 | Revert "Use numerical constants." | John MacFarlane | |
This reverts commit db25de09f5dc931c0e2b31ce0ccdb58052f3105f. | |||
2014-10-02 | Use numerical constants. | John MacFarlane | |
Performance optimization, but at cost of code clarity. | |||
2014-10-02 | Use integers instead of strings for tags. | John MacFarlane | |
Use === whenever possible to compare them. | |||
2014-10-02 | Changed inline parsers to be monomorphic and modify inlines param. | John MacFarlane | |
They all return true or false now, instead of the inlines parsed. Performance optimization. | |||
2014-10-02 | Fixed rendering bug for blockquotes. | John MacFarlane | |
2014-10-02 | Char code optimizations in block parsers. | John MacFarlane | |
2014-10-02 | Eliminated unnecessary variable. | John MacFarlane | |
2014-10-02 | Changed peek() to return char code. | John MacFarlane | |
Test char codes instead of strings. Small optimization (about 1% speed boost). | |||
2014-09-30 | Unescape entities as well as backslashes in titles, URLs. | John MacFarlane | |
This way URLs with entities will be properly percent encoded as in the C implementation. | |||
2014-09-30 | unescape URI before escaping. | John MacFarlane | |
If we already have %-encoded characters in the URI, we want to preserve them. | |||
2014-09-30 | Added entity decoding. | John MacFarlane | |
AST now contains parses entities as Str objects with unicode characters, not as 'Entity'. (Like the new C parser.) | |||
2014-09-29 | Rename unescape -> unescapeBS to avoid confusion with built-in. | John MacFarlane | |
2014-09-29 | Escape URIs. | John MacFarlane | |
2014-09-29 | Use charAt for browser compatibility. | John MacFarlane | |
2014-09-26 | Changing variable names even for even greater readability | Arthur | |