commit dd318eb

default  ·  2025-03-17 07:27:38 +0000 UTC
parent b5f0b4b
Reverted the usage of _ for italics (they are causing problems).
2 files changed,  +1, -8
+1, -1
1@@ -24,7 +24,7 @@ A special subset of Markdown is allowed, including:
2 .It bold
3 **text between two pairs of asterisks**
4 .It italic
5-*text between a pair of asterisks* or _between a pair of underscores_
6+*text between a pair of asterisks*
7 .It strikethrough text
8 ~~text between a pair of tildes~~
9 .It underlined text
+0, -7
 1@@ -95,7 +95,6 @@ static xs_str *format_line(const char *line, xs_list **attach)
 2             "~~[^~]+~~"                         "|"
 3             "\\*\\*?\\*?[^\\*]+\\*?\\*?\\*"     "|"
 4             ":.+:"                              "|" //emotes
 5-            "_[^_]+_"                           "|" //anzu
 6             "__[^_]+__"                         "|" //anzu
 7             "!\\[[^]]+\\]\\([^\\)]+\\)"         "|"
 8             "\\[[^]]+\\]\\([^\\)]+\\)"          "|"
 9@@ -139,12 +138,6 @@ static xs_str *format_line(const char *line, xs_list **attach)
10                 xs *s2 = xs_fmt("<u>%s</u>", s1);
11                 s = xs_str_cat(s, s2);
12             }
13-            else
14-            if (xs_startswith(v, "_")) {
15-                xs *s1 = xs_strip_chars_i(xs_dup(v), "_");
16-                xs *s2 = xs_fmt("<i>%s</i>", s1);
17-                s = xs_str_cat(s, s2);
18-            }
19             //anzu - end
20             else
21             if (xs_startswith(v, "~~")) {