Introduction
Introduction Statistics Contact Development Disclaimer Help
Allow link target in angular brackets - smu - smu - simple markup (Markdown) pr…
git clone git://git.codemadness.org/smu
Log
Files
Refs
README
LICENSE
---
commit 0bb70e62b863b7c7e9686ef058835957ae0ead7b
parent c21412ce4899c134ea315cbdde0ab1f056de1463
Author: Karl Bartel <[email protected]>
Date: Sun, 29 Sep 2019 16:57:00 +0200
Allow link target in angular brackets
Example:
[URL wrapped in angle brackets](</url/>).
Diffstat:
M smu.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);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.