@@ -524,8 +524,8 @@ instance Default DBState where
524524
525525readDocBook :: ReaderOptions -> String -> Either PandocError Pandoc
526526readDocBook _ inp = (\blocks -> Pandoc (dbMeta st') (toList . mconcat $ blocks)) <$> bs
527− where (bs , st') = flip runState def . runExceptT . mapM parseBlock . normalizeTree . parseXML $ inp'
528− inp' = handleInstructions inp
527+ where (bs , st') = flip runState def . runExceptT . mapM parseBlock $ tree
528+ tree = normalizeTree . parseXML . handleInstructions $ inp
529529
530530-- We treat <?asciidoc-br?> specially (issue #1236), converting it
531531-- to <br/>, since xml-light doesn't parse the instruction correctly.