summaryrefslogtreecommitdiff
path: root/src/commonmark.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-29 17:48:04 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-29 17:48:04 -0700
commit455068614817b4080a0606dca0daec4de61ff68a (patch)
tree17a530f45e26e0ec1ec7a92c5d26d273188a4e7f /src/commonmark.c
parent8032d6572d6833e201468ba87b78fba604ef7147 (diff)
commonmark - properly escape literal backticks.
Diffstat (limited to 'src/commonmark.c')
-rw-r--r--src/commonmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index f41c9ee..9a7a882 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -55,7 +55,7 @@ needs_escaping(escaping escape,
{
if (escape == NORMAL) {
return (c == '*' || c == '_' || c == '[' || c == ']' ||
- c == '<' || c == '>' || c == '\\' ||
+ c == '<' || c == '>' || c == '\\' || c == '`' ||
(c == '&' && isalpha(next_c)) ||
(c == '!' && next_c == '[') ||
(state->begin_line &&