@@ -36,8 +36,7 @@ TODO:
36- Org tables
36- Org tables
37- table.el tables
37- table.el tables
38- Images with attributes (floating and width)
38- Images with attributes (floating and width)
39−- Citations and <biblio>
39+- <cite> tag
42module Text.Pandoc.Readers.Muse (readMuse) where
41module Text.Pandoc.Readers.Muse (readMuse) where
@@ -322,6 +321,8 @@ blockElements = do
322 , rightTag
321 , rightTag
323 , quoteTag
322 , quoteTag
325 , verseTag
326 , verseTag
326 , lineBlock
327 , lineBlock
@@ -413,6 +414,18 @@ divTag = do
413 (attrs, content) <- parseHtmlContent "div"
414 (attrs, content) <- parseHtmlContent "div"
414 return $ B.divWith attrs <$> content
415 return $ B.divWith attrs <$> content
417+-- <biblio> tag is supported by Amusewiki only
418+biblioTag :: PandocMonad m => MuseParser m (F Blocks)
420+ guardEnabled Ext_amuse
421+ fmap (B.divWith ("", ["biblio"], [])) . snd <$> parseHtmlContent "biblio"
423+-- <play> tag is supported by Amusewiki only
424+playTag :: PandocMonad m => MuseParser m (F Blocks)
426+ guardEnabled Ext_amuse
427+ fmap (B.divWith ("", ["play"], [])) . snd <$> parseHtmlContent "play"
416verseLine :: PandocMonad m => MuseParser m (F Inlines)
429verseLine :: PandocMonad m => MuseParser m (F Inlines)
417verseLine = do
430verseLine = do
418 indent <- (B.str <$> many1 (char ' ' >> pure '\160')) <|> pure mempty
431 indent <- (B.str <$> many1 (char ' ' >> pure '\160')) <|> pure mempty