|
| 1 | +[0.23.0] |
| 2 | + |
| 3 | + * Check for NULL pointer in _scan_at (#81). |
| 4 | + * Python 3.5 compatibility: don't require HTMLParseError (Zhiming Wang). |
| 5 | + HTMLParseError was removed in Python 3.5. Since it could never be thrown |
| 6 | + in Python 3.5+, we simply define a placeholder when HTMLParseError |
| 7 | + cannot be imported. |
| 8 | + * Set `convert_charrefs=False` in `normalize.py` (#83). This defeats the |
| 9 | + new default as of python 3.5, and allows the script to work with python |
| 10 | + 3.5. |
| 11 | + * `Makefile.nmake`: be more robust when cmake is missing. Previously, |
| 12 | + when cmake was missing, the build dir would be created anyway, and |
| 13 | + subsequent attempts (even with cmake) would fail, because cmake would |
| 14 | + not be run. Depending on `build/CMakeFiles` is more robust -- this won't |
| 15 | + be created unless cmake is run. Partially addresses #85. |
| 16 | + * Fixed DOCTYPE in xml output. |
| 17 | + * commonmark.c: fix `size_t` to `int`. This fixes an MSVC warning |
| 18 | + "conversion from 'size_t' to 'int', possible loss of data" (Kevin Wojniak). |
| 19 | + * Correct string length in `cmark_parse_document` example (Lee Jeffery). |
| 20 | + * Fix non-ASCII end-of-line character check (andyuhnak). |
| 21 | + * Fix "declaration shadows a local variable" (Kevin Wojniak). |
| 22 | + * Install static library (jgm/CommonMark#381). |
| 23 | + * Fix warnings about dropping const qualifier (Kevin Wojniak). |
| 24 | + * Use full (unabbreviated) versions of constants (`CMARK_...`). |
| 25 | + * Removed outdated targets from Makefile. |
| 26 | + * Removed need for sudo in `make bench`. |
| 27 | + * [API change] Added `CUSTOM_BLOCK` and `CUSTOM_INLINE` node types. |
| 28 | + They are never generated by the parser, and do not correspond |
| 29 | + to CommonMark elements. They are designed to be inserted by |
| 30 | + filters that postprocess the AST. For example, a filter might |
| 31 | + convert specially marked code blocks to svg diagrams in HTML |
| 32 | + and tikz diagrams in LaTeX, passing these through to the renderer |
| 33 | + as a `CUSTOM_BLOCK`. These nodes can have children, but they |
| 34 | + also have literal text to be printed by the renderer "on enter" |
| 35 | + and "on exit." Added `cmark_node_get_on_enter`, |
| 36 | + `cmark_node_set_on_enter`, `cmark_node_get_on_exit`, |
| 37 | + `cmark_node_set_on_exit` to API. |
| 38 | + * Improved benchmark. Use longer test, since `time` has limited resolution. |
| 39 | + * Removed `bench.h` and timing calls in `main.c`. |
| 40 | + * Updated API docs; getters return empty strings if not set |
| 41 | + rather than NULL, as previously documented. |
| 42 | + * Added api_tests for custom nodes. |
| 43 | + * Commonmark renderer: ensure html blocks surrounded by blanks. |
| 44 | + Otherwise we get failures of roundtrip tests. |
| 45 | + * Made roundtrip test part of the test suite run by cmake. |
| 46 | + * xml renderer - Added xmlns attribute to document node (jgm/CommonMark#87). |
| 47 | + * [API change] Rename `CMARK_NODE_HEADER` -> `CMARK_NODE_HEADING`. |
| 48 | + Note that for backwards compatibility, we have defined aliases: |
| 49 | + `CMARK_NODE_HEADER` = `CMARK_NODE_HEADING`, |
| 50 | + `cmark_node_get_header_level` = `cmark_node_get_heading_level`, and |
| 51 | + `cmark_node_set_header_level` = `cmark_node_set_heading_level`. |
| 52 | + * [API change] Rename `CMARK_NODE_HRULE` -> `CMARK_NODE_THEMATIC_BREAK`. |
| 53 | + Defined the former as the latter for backwards compatibility. |
| 54 | + * Separate parsing and rendering opts in `cmark.h` (#88). |
| 55 | + This change also changes some of these constants' numerical values, |
| 56 | + but nothing should change in the API if you use the constants |
| 57 | + themselves. It should now be clear in the man page which |
| 58 | + options affect parsing and which affect rendering. |
| 59 | + * Regenerate `scanners.c` using re2c 0.15.3. |
| 60 | + * Adjusted scanner for link url. This fixes a heap buffer overflow (#82). |
| 61 | + * Added version number (1.0) to XML namespace. We don't guarantee |
| 62 | + stability in this until 1.0 is actually released, however. |
| 63 | + * Removed obsolete `TIMER` macro. |
| 64 | + * LaTeX renderer - better handling of internal links. |
| 65 | + Now we render `[foo](#bar)` as `\protect\hyperlink{bar}{foo}`. |
| 66 | + * Make `LIB_INSTALL_DIR` configurable (Mathieu Bridon, #79). |
| 67 | + * Removed out-of-date luajit wrapper. |
| 68 | + * Use `input`, not `parser->curline` to determine last line length. |
| 69 | + * Small optimizations in `_scan_at`. |
| 70 | + * [API change] Rename `NODE_HTML` -> `NODE_HTML_BLOCK`, |
| 71 | + `NODE_INLINE_HTML` -> `NODE_HTML_INLINE`. Define aliases |
| 72 | + so the old names still work, for backwards compatibility. |
| 73 | + * Replaced hard-coded 4 with `TAB_STOP`. |
| 74 | + * Have `make format` reformat api tests as well. |
| 75 | + * Added api tests for man, latex, commonmark, and xml renderers (#51). |
| 76 | + * render.c: added `begin_content` field. This is like `begin_line` except |
| 77 | + that it doesn't trigger production of the prefix. So it can be set |
| 78 | + after an initial prefix (say `> `) is printed by the renderer, and |
| 79 | + consulted in determining whether to escape content that has a special |
| 80 | + meaning at the beginning of a line. Used in the commonmark renderer. |
| 81 | + * Commonmark renderer: ensure that literal characters get escaped |
| 82 | + when they're at the beginning of a block, e.g. `> \- foo`. |
| 83 | + * Don't allow space between link text and link label in a reference link |
| 84 | + (spec change). |
| 85 | + |
1 | 86 | [0.22.0]
|
2 | 87 |
|
3 | 88 | * Removed `pre` from blocktags scanner. `pre` is handled separately
|
|
0 commit comments