only remove enclosing angle brackets
This commit is contained in:
parent
4638c60ded
commit
030392d2cf
1 changed files with 4 additions and 2 deletions
|
@ -1199,8 +1199,10 @@ char_link(hoedown_buffer *ob, hoedown_document *doc, uint8_t *data, size_t offse
|
||||||
link_e--;
|
link_e--;
|
||||||
|
|
||||||
/* remove optional angle brackets around the link */
|
/* remove optional angle brackets around the link */
|
||||||
if (data[link_b] == '<') link_b++;
|
if (data[link_b] == '<' && data[link_e - 1] == '>') {
|
||||||
if (data[link_e - 1] == '>') link_e--;
|
link_b++;
|
||||||
|
link_e--;
|
||||||
|
}
|
||||||
|
|
||||||
/* building escaped link and title */
|
/* building escaped link and title */
|
||||||
if (link_e > link_b) {
|
if (link_e > link_b) {
|
||||||
|
|
Loading…
Reference in a new issue