On Sun, 02 Feb 2020 at 20:25:08, Frédéric Mangano-Tarumi wrote:
> When an FS#123 is part of a code block, it must not be converted into a
> link. FS#123 may also appear inside an URL, in which case regular
> linkifaction of URLs must take precedence.
> ---
> aurweb/scripts/rendercomment.py | 21
First, this gets rid of the deprecation warnings Python displayed.
Second, this fixes the case where a link contained a pair of
underscores, which used to be interpreted as an emphasis because the
linkify processor ran after the emphasis processor.
---
aurweb/scripts/rendercomment.py | 10
---
test/t2600-rendercomment.sh | 26 ++
1 file changed, 26 insertions(+)
diff --git a/test/t2600-rendercomment.sh b/test/t2600-rendercomment.sh
index 1da422d..1ba560a 100755
--- a/test/t2600-rendercomment.sh
+++ b/test/t2600-rendercomment.sh
@@ -129,4 +129,30 @@
When an FS#123 is part of a code block, it must not be converted into a
link. FS#123 may also appear inside an URL, in which case regular
linkifaction of URLs must take precedence.
---
aurweb/scripts/rendercomment.py | 21 ++---
test/t2600-rendercomment.sh | 26
On Sat, 01 Feb 2020 at 19:07:41, Frédéric Mangano-Tarumi wrote:
> Fixes a few edge cases:
>
> - URLs within code blocks used to get redundant <> added, breaking bash
> code snippets like `curl https://...` into `curl `.
>
> - Links written with markdown\u2019s syntax also used to get an
>