github / cmark-gfm

GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C
Other
893 stars 173 forks source link

Expose CMARK_NODE_FOOTNOTE_DEFINITION literal value. #336

Closed ioquatix closed 1 year ago

ioquatix commented 1 year ago

In addition, fix a bug where the length of the literal value was calculated AFTER the actual literal string (null terminated) was allocated.

Before this fix:

# footnote.string_content
"hi]: "

After this fix:

# footnote.string_content
"hi"
ioquatix commented 1 year ago

Sorry, there a glitch in the matrix, I've fixed the commit.