Allow link target in angular brackets
Example: [URL wrapped in angle brackets](</url/>).
This commit is contained in:
parent
c21412ce48
commit
0bb70e62b8
1 changed files with 7 additions and 0 deletions
7
smu.c
7
smu.c
|
@ -277,6 +277,13 @@ dolink(const char *begin, const char *end, int newblock) {
|
|||
else {
|
||||
linkend = q;
|
||||
}
|
||||
|
||||
/* Links can be given in angular brackets */
|
||||
if(*link == '<' && *(linkend - 1) == '>') {
|
||||
link++;
|
||||
linkend--;
|
||||
}
|
||||
|
||||
len = q + 1 - begin;
|
||||
if(img) {
|
||||
fputs("<img src=\"", stdout);
|
||||
|
|
Loading…
Add table
Reference in a new issue