summaryrefslogtreecommitdiff
path: root/src/scanners.re
AgeCommit message (Collapse)Author
2015-07-12Fixed scanner for link url.John MacFarlane
re2c returns the longest match, so we were getting bad results with [link](foo\(and\(bar\)\)) which it would parse as containing a bare `\` followed by an in-parens chunk ending with the final paren.
2015-07-11Allow non-initial hyphens in html tag names.John MacFarlane
This allows for custom tags, see jgm/CommonMark#239.
2015-07-10Updates for new HTML block spec.John MacFarlane
* Rewrote spec for HTML blocks. A few other spec examples also changed as a result. * Removed old `html_block_tag` scanner. Added new `html_block_start` and `html_block_start_7`, as well as `html_block_end_n` for n = 1-5. * Rewrote block parser for new HTML block spec.
2015-07-03Use utf-8 aware re2c.John MacFarlane
2015-06-13Fixed backslashes in link destinations that are not part of escapes.John MacFarlane
See jgm/commonmark#45.
2015-06-07Convert code base to strbuf_tNick Wellnhofer
There are probably a couple of places I missed. But this will only be a problem if we use a 64-bit bufsize_t at some point. Then, we'll get warnings from -Wshorten-64-to-32.
2015-04-07Support for CRLF and CR line endings.Ben Trask
2015-03-29Scanners: added _scan_scheme, scan_scheme.John MacFarlane
This is used in the commonmark renderer.
2015-02-13Updated scanners for new whitespace definition.John MacFarlane
2015-01-31Fixed autolink scanner to conform to the spec.John MacFarlane
Backslash escapes not allowed in autolinks.
2015-01-17Put check for fence close with the other checks for end-of-block.John MacFarlane
This is a more logical arrangement and follows recent changes to the JS implementation.
2015-01-03scanners.re: More accurate regex for HTML comments.John MacFarlane
Note: this only affects inline parsing. Block parsing is handled differently.
2014-12-16scanners.re: use cmark_chunk rather than chunk.John MacFarlane
2014-11-16Declare all functions as extern "C"Nick Wellnhofer
2014-11-13Moved scan_at out of scanners.h, renamed to _scan_at.John MacFarlane
2014-10-24Fixed regex for processing instruction.John MacFarlane
We now handle properly `<?php echo '>'; ?>`. Closes #117.
2014-09-09Remove warningsVicent Marti
2014-09-09379/62Vicent Marti
2014-09-09338/103Vicent Marti
2014-09-09lolVicent Marti
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-08-13Initial commitJohn MacFarlane