diff options
Diffstat (limited to 'src/creole.c')
-rw-r--r-- | src/creole.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/creole.c b/src/creole.c index 5804ebd..94e8020 100644 --- a/src/creole.c +++ b/src/creole.c @@ -116,6 +116,8 @@ static struct { // Escaped special characters {"~[[", "[["}, {"~]]", "]]"}, // NOTE: This pattern is duplicated in do_link(). + {"~//", "//"}, + {"~**", "**"}, // Characters that have special meaning in HTML // NOTE: These rules are duplicated in hprint(). {"<", "<"}, @@ -256,7 +258,7 @@ long do_emphasis(const char *begin, const char *end, bool new_block, FILE *out) const char *stop = start; do { stop = strnstr(stop + 1, "//", end - (stop + 1)); - } while (stop != NULL && stop[-1] == '~' && stop[-1] == ':'); + } while (stop != NULL && (stop[-1] == '~' || stop[-1] == ':')); if (stop == NULL) { return 0; } |