summaryrefslogtreecommitdiff
path: root/src/houdini_html_u.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-13 15:49:59 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-13 16:00:00 -0700
commitcdcb65c5a209a1a3be4a1b9e804f5a4292127509 (patch)
tree5a0faca575699a039c73f90ebce9eaf70f0d0d3d /src/houdini_html_u.c
parent0f7233e073a32c15bdde476edcd04b6d395278b4 (diff)
Fixed entity lookup table.
The old one had many errors. The new one is derived from the list in the npm entities package. Since the sequences can now be longer (multi-code-point), we have bumped the length limit from 4 to 8, which also affects houdini_html_u.c. An example of the kind of error that was fixed in given in jgm/commonmark.js#47: `&ngE;` should be rendered as "≧̸" (U+02267 U+00338), but it's actually rendered as "≧" (which is the same as `&gE;`).
Diffstat (limited to 'src/houdini_html_u.c')
-rw-r--r--src/houdini_html_u.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/houdini_html_u.c b/src/houdini_html_u.c
index e57894d..2362b04 100644
--- a/src/houdini_html_u.c
+++ b/src/houdini_html_u.c
@@ -69,7 +69,7 @@ houdini_unescape_ent(cmark_strbuf *ob, const uint8_t *src, bufsize_t size)
if (entity != NULL) {
bufsize_t len = 0;
- while (len < 4 && entity->utf8[len] != '\0') {
+ while (len < 8 && entity->utf8[len] != '\0') {
++len;
}
cmark_strbuf_put(ob, entity->utf8, len);