From 49134582055a174951b23314170ec42c33796325 Mon Sep 17 00:00:00 2001
From: default
Date: Mon, 17 Mar 2025 08:18:41 +0100
Subject: mastoapi: added support for /api/v1/custom_emojis (contributed by
violette).
---
format.c | 1 +
1 file changed, 1 insertion(+)
(limited to 'format.c')
diff --git a/format.c b/format.c
index 755aeb2..f6bf81e 100644
--- a/format.c
+++ b/format.c
@@ -94,6 +94,7 @@ static xs_str *format_line(const char *line, xs_list **attach)
"`[^`]+`" "|"
"~~[^~]+~~" "|"
"\\*\\*?\\*?[^\\*]+\\*?\\*?\\*" "|"
+ ":.+:" "|" //emotes
"_[^_]+_" "|" //anzu
"__[^_]+__" "|" //anzu
"!\\[[^]]+\\]\\([^\\)]+\\)" "|"
--
cgit v1.2.3
From dd318eb6b26b6ca7eccca5bb6377058a87d60f1d Mon Sep 17 00:00:00 2001
From: default
Date: Mon, 17 Mar 2025 08:27:38 +0100
Subject: Reverted the usage of _ for italics (they are causing problems).
---
format.c | 7 -------
1 file changed, 7 deletions(-)
(limited to 'format.c')
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("%s", 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("%s", s1);
- s = xs_str_cat(s, s2);
- }
//anzu - end
else
if (xs_startswith(v, "~~")) {
--
cgit v1.2.3
From 9869b29f2a63ee7e42f332f8f6cbe735cf915ca9 Mon Sep 17 00:00:00 2001
From: default
Date: Mon, 17 Mar 2025 14:25:52 +0100
Subject: Reverted Markdown error.
---
format.c | 1 -
1 file changed, 1 deletion(-)
(limited to 'format.c')
diff --git a/format.c b/format.c
index b19a6e1..b2b585d 100644
--- a/format.c
+++ b/format.c
@@ -94,7 +94,6 @@ static xs_str *format_line(const char *line, xs_list **attach)
"`[^`]+`" "|"
"~~[^~]+~~" "|"
"\\*\\*?\\*?[^\\*]+\\*?\\*?\\*" "|"
- ":.+:" "|" //emotes
"__[^_]+__" "|" //anzu
"!\\[[^]]+\\]\\([^\\)]+\\)" "|"
"\\[[^]]+\\]\\([^\\)]+\\)" "|"
--
cgit v1.2.3