diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-02-11 22:36:47 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-02-11 22:37:07 +0100 |
commit | 27599602042a43bfe1506c008dab862352bba0b1 (patch) | |
tree | 75a5fcbb9dddff3e9595a9baef04a78ea08cd763 /src/Text/Pandoc/Readers/RST.hs | |
parent | 510a6ee059cd99bef41102f754c0e4674493f28f (diff) | |
download | pandoc-27599602042a43bfe1506c008dab862352bba0b1.tar.gz |
RST reader/writer: properly handle table captions.
Currently the support for the `.. table` directive is a bit
limited; we don't yet support the `widths` field. But at least
you can have a proper captioned table.
Diffstat (limited to 'src/Text/Pandoc/Readers/RST.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index bc0fc042c..024c56685 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -709,7 +709,7 @@ tableDirective top _fields body = do -- align is not applicable since we can't represent whole table align return $ B.singleton $ Table (B.toList title) aligns' widths' header' rows' - bs -> return mempty + _ -> return mempty -- TODO: -- - Only supports :format: fields with a single format for :raw: roles, |