mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Fixed a minor bug in processing Markdown-style links having anchors.
This commit is contained in:
parent
c016b68629
commit
6f772e4770
1 changed files with 2 additions and 2 deletions
2
format.c
2
format.c
|
@ -143,7 +143,7 @@ static xs_str *format_line(const char *line, xs_list **attach)
|
|||
else
|
||||
if (*v == '[') {
|
||||
/* markdown-like links [label](url) */
|
||||
xs *w = xs_strip_chars_i(xs_dup(v), "[)");
|
||||
xs *w = xs_strip_chars_i(xs_replace(v, "#", "#"), "[)");
|
||||
xs *l = xs_split_n(w, "](", 1);
|
||||
|
||||
if (xs_list_len(l) == 2) {
|
||||
|
|
Loading…
Reference in a new issue