summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorGravatar default2022-10-20 11:14:30 +0200
committerGravatar default2022-10-20 11:14:30 +0200
commitfcf2747308c65c3061028c136599b25ed9aa77ae (patch)
tree180319c57b21bf538f07413e6be1ea90b0c969f5 /format.c
parentBetter 'Delete' message logging. (diff)
downloadsnac2-fcf2747308c65c3061028c136599b25ed9aa77ae.tar.gz
snac2-fcf2747308c65c3061028c136599b25ed9aa77ae.tar.xz
snac2-fcf2747308c65c3061028c136599b25ed9aa77ae.zip
Links in created Notes now include a target=_blank.
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index f0f4298..69efbdb 100644
--- a/format.c
+++ b/format.c
@@ -73,7 +73,7 @@ d_char *not_really_markdown(char *content, d_char **f_content)
73 } 73 }
74 else 74 else
75 if (xs_startswith(v, "http")) { 75 if (xs_startswith(v, "http")) {
76 xs *s1 = xs_fmt("<a href=\"%s\">%s</a>", v, v); 76 xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v, v);
77 wrk = xs_str_cat(wrk, s1); 77 wrk = xs_str_cat(wrk, s1);
78 } 78 }
79 else 79 else