mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Links in created Notes now include a target=_blank.
This commit is contained in:
parent
a16600e330
commit
fcf2747308
1 changed files with 1 additions and 1 deletions
2
format.c
2
format.c
|
@ -73,7 +73,7 @@ d_char *not_really_markdown(char *content, d_char **f_content)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (xs_startswith(v, "http")) {
|
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);
|
wrk = xs_str_cat(wrk, s1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue