Age | Commit message (Collapse) | Author |
|
|
|
This improves on #32, I think.
@elibarzilay, does this look better? We now avoid the allocations
associated with cmark_get_literal, and copy directly from
the chunk to the buffer.
|
|
This avoids allocating a new string.
Closes #32.
|
|
|
|
This bug was introduced after the modification in
009c3847f004fda437dd5376a9452973b1cb913e.
|
|
|
|
|
|
* Advance to the next node when calling 'cmark_iter_next', not when
calling 'cmark_iter_get_node'.
* Add 'cmark_iter_get_event_type' accessor.
* Allow deletion of nodes after an 'EXIT' event, or an 'ENTER' event for
leaf nodes.
|
|
|
|
|
|
|
|
So, instead of
<text>Hi</text>
<text>&</text>
<text>lo</text>
we get
<text>Hi&lo</text>
* Added exported `cmark_consolidate_text_nodes` function.
* Added `CMARK_OPT_NORMALIZE` to options.
* Added optional normalization in XML writer.
* Added `--normalize` option to command-line program.
* Updated man page.
|
|
|
|
* Added `iterator.c`, `iterator.h`.
* Removed `cmark_walk`.
* Replaced `cmark_walk` with iterator in HTML renderer.
* Replaced API test for `cmark_walk` with simple iterator test.
|