Re: [PATCH 1/3] rendercomment: safer Flyspray task linkification

2020-02-02 Thread Lukas Fleischer
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

[PATCH 3/3] rendercomment: use python-markdown's new registration API

2020-02-02 Thread Frédéric Mangano-Tarumi
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

[PATCH 2/3] rendercomment: test headings lowering

2020-02-02 Thread Frédéric Mangano-Tarumi
--- 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 @@

[PATCH 1/3] rendercomment: safer Flyspray task linkification

2020-02-02 Thread Frédéric Mangano-Tarumi
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

Re: [PATCH] rendercomment: safer auto-linkification of URLs

2020-02-02 Thread Lukas Fleischer
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 >