Fix entity rendering with MD_HTML_FLAG_VERBATIM_ENTITIES. Fixes #118.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e777b5c..253a511 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,15 @@
# MD4C Change Log
+## Next Version (Work in Progress)
+
+Fixes:
+
+ * [#118](https://github.com/mity/md4c/issues/118):
+ Fix HTML renderer's `MD_HTML_FLAG_VERBATIM_ENTITIES` flag, exposed in the
+ `md2html` utility via `--fverbatim-entities`.
+
+
## Version 0.4.4
Changes:
diff --git a/src/md4c-html.c b/src/md4c-html.c
index 90c8e1d..eb60eaa 100644
--- a/src/md4c-html.c
+++ b/src/md4c-html.c
@@ -207,7 +207,7 @@ render_entity(MD_HTML* r, const MD_CHAR* text, MD_SIZE size,
void (*fn_append)(MD_HTML*, const MD_CHAR*, MD_SIZE))
{
if(r->flags & MD_HTML_FLAG_VERBATIM_ENTITIES) {
- fn_append(r, text, size);
+ render_verbatim(r, text, size);
return;
}