diff options
| author | 2022-10-20 11:14:30 +0200 | |
|---|---|---|
| committer | 2022-10-20 11:14:30 +0200 | |
| commit | fcf2747308c65c3061028c136599b25ed9aa77ae (patch) | |
| tree | 180319c57b21bf538f07413e6be1ea90b0c969f5 /format.c | |
| parent | Better 'Delete' message logging. (diff) | |
| download | snac2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 |