summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commonmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 088b934..5d5cd8a 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -29,12 +29,12 @@ static inline void outc(cmark_renderer *renderer,
needs_escaping =
escape != LITERAL &&
((escape == NORMAL &&
- (c == '*' || c == '_' || c == '[' || c == ']' ||
+ (c == '*' || c == '_' || c == '[' || c == ']' || c == '#' ||
c == '<' || c == '>' || c == '\\' || c == '`' ||
(c == '&' && isalpha(nextc)) ||
(c == '!' && nextc == '[') ||
(renderer->begin_line &&
- (c == '-' || c == '+' || c == '#' || c == '=')) ||
+ (c == '-' || c == '+' || c == '=')) ||
((c == '.' || c == ')') &&
isdigit(renderer->buffer->ptr[renderer->buffer->size - 1])))) ||
(escape == URL &&