diff options
| author | John MacFarlane <[email protected]> | 2023-10-22 17:07:20 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2023-10-22 17:07:20 -0700 |
| commit | 5fa8f292a3bdd22f72c9e03e50e16eb69074c52e (patch) | |
| tree | 814e6cb741b6c3ac1f1b77a4482a1e62ee06bbd3 /src | |
| parent | fbf9194e345f4e0fae287b3e32562df855c2224e (diff) | |
DokuWiki reader: allow autolinks to be avoided...
using e.g. `https:%%//%%...`. Closes #9153.
This is not a fully general fix but it should be enough if
there's a convention of defeating autolinks by putting the
slashes in `%%..%%`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Readers/DokuWiki.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/DokuWiki.hs b/src/Text/Pandoc/Readers/DokuWiki.hs index 26a17c3ff..4dbe64aea 100644 --- a/src/Text/Pandoc/Readers/DokuWiki.hs +++ b/src/Text/Pandoc/Readers/DokuWiki.hs @@ -222,6 +222,7 @@ autoLink = try $ do state <- getState guard $ stateAllowLinks state (text, url) <- uri + guard $ not $ T.isInfixOf "%%//%%" text -- see #9153 guard $ checkLink (T.last url) return $ makeLink (text, url) where |
