Support beamer \alert in LaTeX reader. Closes #4091.

This commit is contained in:
John MacFarlane 2017-11-29 21:30:13 -08:00
parent c65b514ed1
commit 03ddac451e
2 changed files with 7 additions and 0 deletions

View file

@ -1245,6 +1245,7 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList $
, ("textup", extractSpaces (spanWith ("",["upright"],[])) <$> tok)
, ("texttt", ttfamily)
, ("sout", extractSpaces strikeout <$> tok)
, ("alert", skipangles >> spanWith ("",["alert"],[]) <$> tok) -- beamer
, ("lq", return (str ""))
, ("rq", return (str ""))
, ("textquoteleft", return (str ""))

6
test/command/4091.md Normal file
View file

@ -0,0 +1,6 @@
```
% pandoc -f latex
\alert<3>{foo}
^D
<p><span class="alert">foo</span></p>
```