md_html: Add `~` to the list of characters not escaped in URIs. Fixes #165.
diff --git a/src/md4c-html.c b/src/md4c-html.c
index 22907f1..d604aec 100644
--- a/src/md4c-html.c
+++ b/src/md4c-html.c
@@ -555,7 +555,7 @@ md_html(const MD_CHAR* input, MD_SIZE input_size,
if(strchr("\"&<>", ch) != NULL)
render.escape_map[i] |= NEED_HTML_ESC_FLAG;
- if(!ISALNUM(ch) && strchr("-_.+!*(),%#@?=;:/,+$", ch) == NULL)
+ if(!ISALNUM(ch) && strchr("~-_.+!*(),%#@?=;:/,+$", ch) == NULL)
render.escape_map[i] |= NEED_URL_ESC_FLAG;
}