git.iko.soy/typeable/pandoc
on master help sign in
Support beamer `\alert` in LaTeX reader. Closes #4091.
commit03ddac451edcd6eb8dfa1a77b174fd146aa5e722 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 29 Nov 2017, 21:30 (9 years ago) parentc65b514
2 files changed+7
src/Text/Pandoc/Readers/LaTeX.hs+1 test/command/4091.md+6
src/Text/Pandoc/Readers/LaTeX.hs+1
@@ -1245,6 +1245,7 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList $
12451245 , ("textup", extractSpaces (spanWith ("",["upright"],[])) <$> tok)
12461246 , ("texttt", ttfamily)
12471247 , ("sout", extractSpaces strikeout <$> tok)
1248+ , ("alert", skipangles >> spanWith ("",["alert"],[]) <$> tok) -- beamer
12481249 , ("lq", return (str "‘"))
12491250 , ("rq", return (str "’"))
12501251 , ("textquoteleft", return (str "‘"))
test/command/4091.mdnew file+6
@@ -0,0 +1,6 @@
1+```
2+% pandoc -f latex
3+\alert<3>{foo}
4+^D
5+<p><span class="alert">foo</span></p>
6+```