diff --git a/src/markdown.c b/src/markdown.c index 668964c..3943d6e 100755 --- a/src/markdown.c +++ b/src/markdown.c @@ -415,7 +415,7 @@ parse_emph1(struct buf *ob, struct render *rndr, char *data, size_t size, char c if (data[i] == c && !isspace(data[i - 1])) { - if ((rndr->ext_flags & MKDEXT_LAX_EMPHASIS) == 0) { + if (rndr->ext_flags & MKDEXT_STRICT_EMPHASIS) { if (!(i + 1 == size || isspace(data[i + 1]) || ispunct(data[i + 1]))) continue; } diff --git a/src/markdown.h b/src/markdown.h index cae5347..7d01d57 100755 --- a/src/markdown.h +++ b/src/markdown.h @@ -33,7 +33,7 @@ enum mkd_autolink { }; enum mkd_extensions { - MKDEXT_LAX_EMPHASIS = (1 << 0), + MKDEXT_STRICT_EMPHASIS = (1 << 0), MKDEXT_TABLES = (1 << 1), MKDEXT_FENCED_CODE = (1 << 2), MKDEXT_AUTOLINK = (1 << 3),