@@ -392,7 +392,9 @@ referenceKey = try $ do
392392 src <- try betweenAngles <|> sourceURL
393393 tit <- option "" referenceTitle
394394 attr <- option nullAttr $ try $
395− guardEnabled Ext_link_attributes >> skipSpaces >> attributes
395+ do guardEnabled Ext_link_attributes
396+ skipSpaces >> optional newline >> skipSpaces
397+ attributes
396398 addKvs <- option [] $ guardEnabled Ext_mmd_link_attributes
397399 >> many (try $ spnl >> keyValAttr)
398400 blanklines