browser: replace inter-feature links to caniuse.com
[sheet.git] / browser.plp
index e6491cba039951ae034ade42a20dbad82d045e3b..930c435fb83b14d5ea39c93f1f8e77e3b58bfdca 100644 (file)
@@ -311,6 +311,7 @@ sub formatnotes {
                s/(?<= [^.\n]) $/./gmx;  # consistently end each line by a period
                Entity($_);
                s{  ` ([^`]*)  ` }{<code>$1</code>}gx;
+               s{ \(\K (?: \Qhttps://caniuse.com\E )? (?: /? \#feat= | / ) }{#}gx;
                s{ \[ ([^]]*) \] \( ([^)]*) \) }{<a href="$2">$1</a>}gx;
        }
        return @html;