aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/snac.52
-rw-r--r--format.c7
2 files changed, 1 insertions, 8 deletions
diff --git a/doc/snac.5 b/doc/snac.5
index d873908..8465403 100644
--- a/doc/snac.5
+++ b/doc/snac.5
@@ -24,7 +24,7 @@ A special subset of Markdown is allowed, including:
.It bold
**text between two pairs of asterisks**
.It italic
-*text between a pair of asterisks* or _between a pair of underscores_
+*text between a pair of asterisks*
.It strikethrough text
~~text between a pair of tildes~~
.It underlined text
diff --git a/format.c b/format.c
index f6bf81e..b19a6e1 100644
--- a/format.c
+++ b/format.c
@@ -95,7 +95,6 @@ static xs_str *format_line(const char *line, xs_list **attach)
"~~[^~]+~~" "|"
"\\*\\*?\\*?[^\\*]+\\*?\\*?\\*" "|"
":.+:" "|" //emotes
- "_[^_]+_" "|" //anzu
"__[^_]+__" "|" //anzu
"!\\[[^]]+\\]\\([^\\)]+\\)" "|"
"\\[[^]]+\\]\\([^\\)]+\\)" "|"
@@ -139,12 +138,6 @@ static xs_str *format_line(const char *line, xs_list **attach)
xs *s2 = xs_fmt("<u>%s</u>", s1);
s = xs_str_cat(s, s2);
}
- else
- if (xs_startswith(v, "_")) {
- xs *s1 = xs_strip_chars_i(xs_dup(v), "_");
- xs *s2 = xs_fmt("<i>%s</i>", s1);
- s = xs_str_cat(s, s2);
- }
//anzu - end
else
if (xs_startswith(v, "~~")) {