summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-20 11:14:30 +0200
committerdefault <nobody@localhost>2022-10-20 11:14:30 +0200
commitfcf2747308c65c3061028c136599b25ed9aa77ae (patch)
tree180319c57b21bf538f07413e6be1ea90b0c969f5 /format.c
parenta16600e3307050619d4866f95ebd0fb43034005c (diff)
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)
}
else
if (xs_startswith(v, "http")) {
- xs *s1 = xs_fmt("<a href=\"%s\">%s</a>", v, v);
+ xs *s1 = xs_fmt("<a href=\"%s\" target=\"_blank\">%s</a>", v, v);
wrk = xs_str_cat(wrk, s1);
}
else