git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: allow optional args for parbox.
7ba0ae8John MacFarlane
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -2003,7 +2003,7 @@ closing = do
2003blockCommands :: PandocMonad m => M.Map Text (LP m Blocks)
2003blockCommands :: PandocMonad m => M.Map Text (LP m Blocks)
2004blockCommands = M.fromList $
2004blockCommands = M.fromList $
2005 [ ("par", mempty <$ skipopts)
2005 [ ("par", mempty <$ skipopts)
2006− , ("parbox", braced >> grouped blocks)
2006+ , ("parbox", skipopts >> braced >> grouped blocks)
2007 , ("title", mempty <$ (skipopts *>
2007 , ("title", mempty <$ (skipopts *>
2008 (grouped inline >>= addMeta "title")
2008 (grouped inline >>= addMeta "title")
2009 <|> (grouped block >>= addMeta "title")))
2009 <|> (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+