git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: allow optional args for parbox.

See #4056.

commit7ba0ae8b4d9a6d3e7d4484a5f257e1e53f35667d authorJohn MacFarlane <jgm@berkeley.edu> dateSun 12 Nov 2017, 14:19 (9 years ago) parentb4f68a5
2 files changed+12−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1 test/command/4056.md+11
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -2003,7 +2003,7 @@ closing = do
20032003blockCommands :: PandocMonad m => M.Map Text (LP m Blocks)
20042004blockCommands = M.fromList $
20052005 [ ("par", mempty <$ skipopts)
2006− , ("parbox", braced >> grouped blocks)
2006+ , ("parbox", skipopts >> braced >> grouped blocks)
20072007 , ("title", mempty <$ (skipopts *>
20082008 (grouped inline >>= addMeta "title")
20092009 <|> (grouped block >>= addMeta "title")))
test/command/4056.mdnew file+11
@@ -0,0 +1,11 @@
1+```
2+% pandoc -f markdown -t native
3+\parbox[t]{0.4\textwidth}{
4+\begin{shaded}
5+\end{shaded}
6+}
7+^D
8+[RawBlock (Format "latex") "\\parbox[t]{0.4\\textwidth}{\n\\begin{shaded}\n\\end{shaded}\n}"]
9+```
10+
11+