git.iko.soy/typeable/pandoc
on master help sign in
RST reader: use title, not admonition-title, for admonition title.

This puts RST reader into alignment with docbook reader.

commit8e01ccb41dde8a5e6123f5b0746c36f240576047 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 23 Aug 2019, 09:23 (7 years ago) parent1c71bd1
1 file changed+1−1
src/Text/Pandoc/Readers/RST.hs+1−1
src/Text/Pandoc/Readers/RST.hs+1−1
@@ -695,7 +695,7 @@ directive' = do
695695 do bod <- parseFromString' parseBlocks $ top ++ "\n\n" ++ body'
696696 let lab = case label of
697697 "admonition" -> mempty
698− (l:ls) -> B.divWith ("",["admonition-title"],[])
698+ (l:ls) -> B.divWith ("",["title"],[])
699699 (B.para (B.str (toUpper l : ls)))
700700 [] -> mempty
701701 return $ B.divWith (name,label:classes,keyvals) (lab <> bod)