Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-07-13 | Reverted mistaken fix to #193. | John MacFarlane | |
Commit 14ea489f5dd6e3d07e23f104d6c9ce441d05751b | |||
2017-06-21 | Don't scan past newline either | Yuki Izumi | |
2017-06-21 | Don't scan past an EOL | Yuki Izumi | |
2017-06-02 | Fixed bug with unescaped left angle bracket in link destination. | John MacFarlane | |
Closes #193. | |||
2016-12-05 | scanners.c generated with re2c 0.16 (68K smaller!). | John MacFarlane | |
2016-12-05 | scanners.re - fixed warnings; use * for fallback. | John MacFarlane | |
2016-12-01 | Allow balanced nested parens in link destinations (#166) | Yuki Izumi | |
2016-09-14 | Allow tabs after setext header line. | John MacFarlane | |
See jgm/commonmark.js#109 | |||
2016-09-13 | Regenerated scanners.c. | John MacFarlane | |
2016-09-12 | Fixed h2..h6 HTML blocks (jgm/CommonMark#430). | John MacFarlane | |
Added regression test. | |||
2016-07-02 | Fixed ATX headers and thematic breaks to allow tabs as well as spaces. | John MacFarlane | |
2016-04-09 | Reformatted. | John MacFarlane | |
2016-02-06 | Generated scanners.c with more recent re2c. | John MacFarlane | |
2016-01-11 | Fixed edge case with escaped parens in link destination. | John MacFarlane | |
Closes #97. This was also checked against the #82 case with asan. | |||
2016-01-05 | Don't allow spaces in link destinations, even with pointy brackets. | John MacFarlane | |
Conforms to latest change in spec. | |||
2016-01-05 | Updated `scheme` scanner according to spec change. | John MacFarlane | |
We no longer use a whitelist of valid schemes. | |||
2015-12-28 | Another small optimization in _scan_at. | John MacFarlane | |
Check for offset greater than string length. | |||
2015-12-22 | Adjusted scanner for link url. | John MacFarlane | |
This fixes the heap buffer overflow reported in #82. Closes #82. | |||
2015-12-22 | Regenerate scanners.c using re2c 0.15.3. | John MacFarlane | |
2015-12-22 | Rename hrule -> thematic_break. | John MacFarlane | |
CMARK_NODE_HRULE -> CMARK_NODE_THEMATIC_BREAK. However we've defined the former as the latter to keep backwards compatibility. See jgm/CommonMark 8fa94cb460f5e516b0e57adca33f50a669d51f6c | |||
2015-12-22 | Rename 'header' -> 'heading'. | John MacFarlane | |
See jgm/CommonMark commit 0cdbcee4e840abd0ac7db93797b2b75ca4104314 Note that we have defined cmark_node_get_header_level = cmark_node_get_heading_level and cmark_node_set_header_level = camrk_node_set_heading_level for backwards compatibility in the API. | |||
2015-09-16 | Check for NULL pointer in _scan_at. | John MacFarlane | |
Closes #81. | |||
2015-08-18 | Added iframe to list of blocktags, as per spec change. | John MacFarlane | |
2015-08-07 | Removed pre from blocktags scanner. | John MacFarlane | |
See jgm/CommonMark#355. Pre is handled separately in rule 1 and needn't be handled in rule 6. | |||
2015-07-27 | Use clang-format, llvm style, for formatting. | John MacFarlane | |
* Reformatted all source files. * Added 'format' target to Makefile. * Removed 'astyle' target. * Updated .editorconfig. | |||
2015-07-13 | Added `CMARK_OPT_SAFE` option and `--safe` command-line flag. | John MacFarlane | |
* Added `CMARK_OPT_SAFE`. This option disables rendering of raw HTML and potentially dangerous links. * Added `--safe` option in command-line program. * Updated `cmark.3` man page. * Added `scan_dangerous_url` to scanners. * In HTML, suppress rendering of raw HTML and potentially dangerous links if `CMARK_OPT_SAFE`. Dangerous URLs are those that begin with `javascript:`, `vbscript:`, `file:`, or `data:` (except for `image/png`, `image/gif`, `image/jpeg`, or `image/webp` mime types). * Added `api_test` for `OPT_CMARK_SAFE`. * Rewrote `README.md` on security. | |||
2015-07-12 | Fixed 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-11 | Allow non-initial hyphens in html tag names. | John MacFarlane | |
This allows for custom tags, see jgm/CommonMark#239. | |||
2015-07-10 | Updates 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-03 | Use utf-8 aware re2c. | John MacFarlane | |
2015-06-13 | Fixed backslashes in link destinations that are not part of escapes. | John MacFarlane | |
See jgm/commonmark#45. | |||
2015-06-07 | Convert code base to strbuf_t | Nick 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-07 | Support for CRLF and CR line endings. | Ben Trask | |
2015-03-29 | Scanners: added _scan_scheme, scan_scheme. | John MacFarlane | |
This is used in the commonmark renderer. | |||
2015-02-13 | Updated scanners for new whitespace definition. | John MacFarlane | |
2015-01-31 | Fixed autolink scanner to conform to the spec. | John MacFarlane | |
Backslash escapes not allowed in autolinks. | |||
2015-01-17 | Put 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-03 | scanners.re: More accurate regex for HTML comments. | John MacFarlane | |
Note: this only affects inline parsing. Block parsing is handled differently. | |||
2014-12-16 | scanners.re: use cmark_chunk rather than chunk. | John MacFarlane | |
2014-12-15 | Re-added cmark_ prefix to strbuf and chunk. | John MacFarlane | |
Reverts 225d720. | |||
2014-12-01 | Added src/scanners.c to repository. | John MacFarlane | |
This reduces build dependencies and should help avoid issues like |