summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2022-09-27 17:19:59 +0200
committerGravatar default2022-09-27 17:19:59 +0200
commitbd2a07691df6beb2bbe480f856c3801a67f16d68 (patch)
tree670e003c571b6de1a563e0f85627d7c96eae7d65 /html.c
parent'Accept' messages are processed. (diff)
downloadsnac2-bd2a07691df6beb2bbe480f856c3801a67f16d68.tar.gz
snac2-bd2a07691df6beb2bbe480f856c3801a67f16d68.tar.xz
snac2-bd2a07691df6beb2bbe480f856c3801a67f16d68.zip
Backport from xs.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index 0d1c27a..7651a5b 100644
--- a/html.c
+++ b/html.c
@@ -21,7 +21,7 @@ d_char *not_really_markdown(char *content, d_char **f_content)
21 /* global changes */ 21 /* global changes */
22 { 22 {
23 /* backticks */ 23 /* backticks */
24 xs *ml = xs_regex_matchall(wrk, "`[^`]+`"); 24 xs *ml = xs_regex_match(wrk, "`[^`]+`");
25 p = ml; 25 p = ml;
26 26
27 while (xs_list_iter(&p, &v)) { 27 while (xs_list_iter(&p, &v)) {
@@ -34,7 +34,7 @@ d_char *not_really_markdown(char *content, d_char **f_content)
34 34
35 { 35 {
36 /* double asterisks */ 36 /* double asterisks */
37 xs *ml = xs_regex_matchall(wrk, "\\*\\*[^\\*]+\\*\\*"); 37 xs *ml = xs_regex_match(wrk, "\\*\\*[^\\*]+\\*\\*");
38 p = ml; 38 p = ml;
39 39
40 while (xs_list_iter(&p, &v)) { 40 while (xs_list_iter(&p, &v)) {
@@ -47,7 +47,7 @@ d_char *not_really_markdown(char *content, d_char **f_content)
47 47
48 { 48 {
49 /* single asterisks */ 49 /* single asterisks */
50 xs *ml = xs_regex_matchall(wrk, "\\*[^\\*]+\\*"); 50 xs *ml = xs_regex_match(wrk, "\\*[^\\*]+\\*");
51 p = ml; 51 p = ml;
52 52
53 while (xs_list_iter(&p, &v)) { 53 while (xs_list_iter(&p, &v)) {