From 39569ef782d50a47b05695fd2bbbabddf596c7f2 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 19 Dec 2021 01:44:29 -0500 Subject: [PATCH] Allow inline styles in url descriptions --- blag.c | 6 +++--- test/big.html | 4 ++++ test/big.txt | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/blag.c b/blag.c index be6b9c4..37e8a88 100644 --- a/blag.c +++ b/blag.c @@ -187,7 +187,7 @@ int parse() { } break; case '`': - if (s.in_link == NONE && s.in != CODE) { + if (s.in_link != LINK_URL_PARSE && s.in != CODE) { if (s.in_code) { printf(""); s.in_code = 0; @@ -200,7 +200,7 @@ int parse() { } break; case '*': - if (!s.in_code && s.in_link == NONE && s.in != CODE) { + if (!s.in_code && s.in_link != LINK_URL_PARSE && s.in != CODE) { if (s.in_bold) { printf(""); s.in_bold = 0; @@ -213,7 +213,7 @@ int parse() { } break; case '_': - if (!s.in_code && s.in_link == NONE && s.in != CODE) { + if (!s.in_code && s.in_link != LINK_URL_PARSE && s.in != CODE) { if (s.in_ital) { printf(""); s.in_ital = 0; diff --git a/test/big.html b/test/big.html index 08a51a2..041ac2f 100644 --- a/test/big.html +++ b/test/big.html @@ -83,3 +83,7 @@ $ git status

cheers!

+ +

+use sacc(1) +

diff --git a/test/big.txt b/test/big.txt index b5a0dba..bb4cb28 100644 --- a/test/big.txt +++ b/test/big.txt @@ -33,3 +33,5 @@ my [gopher://alexkarle.com gopherhole]. is escaped! cheers! + +[gopher://alexkarle.com use `sacc(1)`] -- libgit2 1.1.1