diff options
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index 35b9ade65..7e29caf28 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -1544,7 +1544,7 @@ lookupKey oldkeys key = do logMessage $ ReferenceNotFound key' pos return (("",""),nullAttr) -- check for keys of the form link_, which need to be resolved: - Just ((u@(_:_),""),_) | last u == '_' -> do + Just ((u@(c:_),""),_) | last u == '_', c /= '#' -> do let rawkey = init u let newkey = toKey rawkey if newkey `elem` oldkeys |