@@ -1774,7 +1774,8 @@ referenceLink :: (Attr -> String -> String -> Inlines -> Inlines)
17741774referenceLink constructor (lab, raw) = do
17751775 sp <- (True <$ lookAhead (char ' ')) <|> return False
17761776 (_,raw') <- option (mempty, "") $
1777− lookAhead (try (spnl >> normalCite >> return (mempty, "")))
1777+ lookAhead (try (guardEnabled Ext_citations >>
1778+ spnl >> normalCite >> return (mempty, "")))
17781779 <|>
17791780 try (spnl >> reference)
17801781 when (raw' == "") $ guardEnabled Ext_shortcut_reference_links