@@ -280,7 +280,7 @@ yamlMetaBlock = try $ do
280280 ) nullMeta hashmap
281281 Right Yaml.Null -> return nullMeta
282282 Right _ -> do
283− P.addWarningWithPos (Just pos) "YAML header is not an object"
283+ P.warningWithPos (Just pos) "YAML header is not an object"
284284 return nullMeta
285285 Left err' -> do
286286 case err' of
@@ -291,13 +291,13 @@ yamlMetaBlock = try $ do
291291 yamlLine = yline
292292 , yamlColumn = ycol
293293 }}) ->
294− P.addWarningWithPos (Just $ setSourceLine
294+ P.warningWithPos (Just $ setSourceLine
295295 (setSourceColumn pos
296296 (sourceColumn pos + ycol))
297297 (sourceLine pos + 1 + yline))
298298 $ "Could not parse YAML header: " ++
299299 problem
300− _ -> P.addWarningWithPos (Just pos)
300+ _ -> P.warningWithPos (Just pos)
301301 $ "Could not parse YAML header: " ++
302302 show err'
303303 return nullMeta
@@ -420,7 +420,7 @@ referenceKey = try $ do
420420 let oldkeys = stateKeys st
421421 let key = toKey raw
422422 case M.lookup key oldkeys of
423− Just _ -> P.addWarningWithPos (Just pos) $ "Duplicate link reference `" ++ raw ++ "'"
423+ Just _ -> P.warningWithPos (Just pos) $ "Duplicate link reference `" ++ raw ++ "'"
424424 Nothing -> return ()
425425 updateState $ \s -> s { stateKeys = M.insert key (target, attr') oldkeys }
426426 return $ return mempty
@@ -486,7 +486,7 @@ noteBlock = try $ do
486486 let newnote = (ref, parsed)
487487 oldnotes <- stateNotes' <$> getState
488488 case lookup ref oldnotes of
489− Just _ -> P.addWarningWithPos (Just pos) $ "Duplicate note reference `" ++ ref ++ "'"
489+ Just _ -> P.warningWithPos (Just pos) $ "Duplicate note reference `" ++ ref ++ "'"
490490 Nothing -> return ()
491491 updateState $ \s -> s { stateNotes' = newnote : oldnotes }
492492 return mempty