cmark

My personal build of CMark ✏️

Commit
ae806c61768ee2cad6501378a8e6d9199a00b5b4
Parent
047e65d0b05f601bd0a6fafb4f4eab98659c1529
Author
John MacFarlane <jgm@berkeley.edu>
Date

Bump to 0.24.1, updated changelog.

Diffstat

2 files changed, 23 insertions, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified CMakeLists.txt 2 1 1
Modified changelog.txt 22 22 0
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -10,7 +10,7 @@ set(PROJECT_NAME "cmark")
 
 set(PROJECT_VERSION_MAJOR 0)
 set(PROJECT_VERSION_MINOR 24)
-set(PROJECT_VERSION_PATCH 0)
+set(PROJECT_VERSION_PATCH 1)
 set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} )
 
 option(CMARK_TESTS "Build cmark tests and enable testing" ON)
diff --git a/changelog.txt b/changelog.txt
@@ -1,3 +1,25 @@
+[0.24.1]
+
+  * Commonmark renderer:
+    + Use HTML comment, not two blank lines, to separate a list
+      item from a following code block or list.  This makes the
+      output more portable, since the "two blank lines" rule is
+      unique to CommonMark.  Also, it allows us to break out of
+      a sublist without breaking out of all levels of nesting.
+    + `is_autolink` - handle case where link has no children,
+      which previously caused a segfault.
+    + Use 4-space indent for bullet lists, for increased portability.
+    + Use 2-space + newline for line break for increased portability (#90).
+    + Improved punctuation escaping.  Previously all `)` and
+      `.` characters after digits were escaped; now they are
+      only escaped if they are genuinely in a position where
+      they'd cause a list item.  This is achieved by changes in
+      `render.c`: (a) `renderer->begin_content` is only set to
+      false after a string of digits at the beginning of the
+      line, and (b) we never break a line before a digit.
+      Also, `begin_content` is properly initialized to true.
+  * Handle NULL root in `consolidate_text_nodes`.
+
 [0.24.0]
 
   * [API change] Added `cmark_node_replace(oldnode, newnode)`.