summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2014-09-26Simple fallback if we don't match emphasis.John MacFarlane
The other approach led to wrong results on: *hi _there*
2014-09-26Changing some variable names to more explicit ones to improve readabilityArthur
2014-09-24Fixed bug that causes hang on bare `<` inside link label.John MacFarlane
2014-09-24Merge pull request #92 from meziantou/patch-1John MacFarlane
Fix some compatibility issues
2014-09-17Use helper functions to simplify code.John MacFarlane
2014-09-16Revert "Re-added backtracking and memoization."John MacFarlane
This reverts commit ac8529c9f55da7fdc1186e3f34313cf411de6e71.
2014-09-16Re-added backtracking and memoization.John MacFarlane
Gives better results for things like **foo*
2014-09-16Small performance tweaks.John MacFarlane
2014-09-16Fixed bug in parsing `* **a** b*` etc.John MacFarlane
2014-09-16New parseEmphasis algorithm.John MacFarlane
- State machine for emphasis parsing. - This would require some adjustments to the spec and spec examples. - It currently blows the stack on `tricky'. - Memoization code has been commented out. - Inline parsers return arrays.
2014-09-15Merge pull request #90 from ousia/masterJohn MacFarlane
typo replacing CommonMark corrected
2014-09-11Fixed performance regression from eccc23dc8d.John MacFarlane
2014-09-11Fixed typo.John MacFarlane
starting
2014-09-11jshint improvements.John MacFarlane
2014-09-11Reindented source with js2-mode.John MacFarlane
2014-09-11Clarified code logic for last_emphasis_closer.John MacFarlane
2014-09-11Add check for null in last_emphasis_closer.John MacFarlane
2014-09-11Renamed last_closer -> last_emphasis_closer.John MacFarlane
2014-09-11Added last_closer to Inline object.John MacFarlane
This helps us avoid unneeded backtracking in pathological input of the form: *a **a *a **a *a etc. If we get to position k without finding a closing delimiter, then backtrack to 1, we can assume we won't find a closing delimiter when parsing forward again. This could no doubt be polished up, e.g. by making it sensitive to the kind of delimiter.
2014-09-11Fixed bug.John MacFarlane
2014-09-11Special-case ***xx*** as strong/em.John MacFarlane
2014-09-11Simplified parseEmphasis.John MacFarlane
2014-09-11Handle case with 4+ delimiters in a row.John MacFarlane
Spec says to skip these.
2014-09-11Fixed reMain regex for better performance.John MacFarlane
2014-09-11Fixed rewind on parseLabel.John MacFarlane
14 test failures now, all with emphasis. IN most of all of these cases, the examples in the spec seem to be mistakes, given what the spec says. More troubling, performance is down from around 220 to 83. This needs investigation.
2014-09-11Completed conversion to memoized strategy.John MacFarlane
Test suite runs, but many failures.
2014-09-11Cleanup.John MacFarlane
2014-09-11Did parseAutolink.John MacFarlane
2014-09-11Did parseHtmLTag.John MacFarlane
2014-09-11Did parseEntity.John MacFarlane
2014-09-11Did parseBackticks.John MacFarlane
2014-09-11Finished parseEmphasis.John MacFarlane
This seems to work properly. We now get proper results for `***hi**`.
2014-09-11parseEmphasis: added Strong and shell for triples.John MacFarlane
2014-09-11Shell of parseEmphasis.John MacFarlane
2014-09-11Did parseBackslash (used to be parseEscaped).John MacFarlane
2014-09-11New strategy: did parseNewlines, parseString.John MacFarlane
2014-09-11stmd.js: Added memoization of inline parsing.John MacFarlane
2014-09-09Dingus: use bind('keyup paste cut mouseup'...John MacFarlane
Modifies #98. (Generic 'change' by itself wasn't enough.)
2014-09-09Use generic 'change' to trigger parseAndRender.John MacFarlane
Modifies #98.
2014-09-08Fix some compatibility issuesGérald Barré
- Use `String.charAt(index)` instead of array like syntax for browser compatibility. - Use `Array.slice(index, length)` instead of `Array.slice(index)` for browser compatibility.
2014-09-07typo replacing CommonMark correctedPablo Rodríguez
2014-09-07Fixed #48.John MacFarlane
- Fixed js and C code. - Added two test cases to spec.
2014-09-07Partially address #48 in js parser.John MacFarlane
TODO: C parser, add test case to spec.
2014-09-07Fixed comment.John MacFarlane
2014-09-06Spec, js, C: Added iframe to block-level HTML tags.John MacFarlane
Closes #88.
2014-09-06Don't treat "br" as a block-level HTML tag.John MacFarlane
Fixed in spec and both implementations. Closes #67.
2014-09-06stmd.js: Added another regex anchor, in reMain.John MacFarlane
2014-09-06Added anchor to linkDestination regexes.John MacFarlane
Closes #62.
2014-09-06Merge pull request #65 from yamadapc/masterJohn MacFarlane
Fix the output of the JS `markdown` executable.
2014-09-06Adjusted HTML output for fenced code to match #71 change.John MacFarlane