smu

Simple markup processor
git clone https://git.sinitax.com/codemadness/smu
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 0bb70e62b863b7c7e9686ef058835957ae0ead7b
parent c21412ce4899c134ea315cbdde0ab1f056de1463
Author: Karl Bartel <karl42@gmail.com>
Date:   Sun, 29 Sep 2019 16:57:00 +0200

Allow link target in angular brackets

Example:

[URL wrapped in angle brackets](</url/>).

Diffstat:
Msmu.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/smu.c b/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);