git.iko.soy/typeable/pandoc
on master help sign in
Support for \faCheck and \faClose (#3727)
commitf36de77a2586d314d8de25c3c2a48fb5f95cafc9 authorschrieveslaach <schrieveslaach@online.de> dateSun 11 Jun 2017, 07:47 (9 years ago) parent4983055
2 files changed+16
src/Text/Pandoc/Readers/LaTeX.hs+3 test/command/latex-fontawesome.md+13
src/Text/Pandoc/Readers/LaTeX.hs+3
@@ -682,6 +682,9 @@ inlineCommands = M.fromList $
682682 , ("nohyphens", tok)
683683 , ("textnhtt", ttfamily)
684684 , ("nhttfamily", ttfamily)
685+ -- fontawesome
686+ , ("faCheck", lit "\10003")
687+ , ("faClose", lit "\10007")
685688 ] ++ map ignoreInlines
686689 -- these commands will be ignored unless --parse-raw is specified,
687690 -- in which case they will appear as raw latex blocks:
test/command/latex-fontawesome.mdnew file+13
@@ -0,0 +1,13 @@
1+```
2+% pandoc -f latex -t native
3+Check: \faCheck
4+^D
5+[Para [Str "Check:",Space,Str "\10003"]]
6+```
7+
8+```
9+% pandoc -f latex -t native
10+Close: \faClose
11+^D
12+[Para [Str "Close:",Space,Str "\10007"]]
13+```