aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschrieveslaach <schrieveslaach@online.de>2017-06-11 07:47:42 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-11 07:47:42 +0200
commitf36de77a2586d314d8de25c3c2a48fb5f95cafc9 (patch)
treeff014bb58f01236d6870fb6c30185e7734bb0954
parent49830555fa4a384692ab4ec4e64fdb6c4e7bc78b (diff)
downloadpandoc-f36de77a2586d314d8de25c3c2a48fb5f95cafc9.tar.gz
Support for \faCheck and \faClose (#3727)
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs3
-rw-r--r--test/command/latex-fontawesome.md13
2 files changed, 16 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 796d2789e..1ac872933 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -682,6 +682,9 @@ inlineCommands = M.fromList $
, ("nohyphens", tok)
, ("textnhtt", ttfamily)
, ("nhttfamily", ttfamily)
+ -- fontawesome
+ , ("faCheck", lit "\10003")
+ , ("faClose", lit "\10007")
] ++ map ignoreInlines
-- these commands will be ignored unless --parse-raw is specified,
-- in which case they will appear as raw latex blocks:
diff --git a/test/command/latex-fontawesome.md b/test/command/latex-fontawesome.md
new file mode 100644
index 000000000..2a7e91185
--- /dev/null
+++ b/test/command/latex-fontawesome.md
@@ -0,0 +1,13 @@
+```
+% pandoc -f latex -t native
+Check: \faCheck
+^D
+[Para [Str "Check:",Space,Str "\10003"]]
+```
+
+```
+% pandoc -f latex -t native
+Close: \faClose
+^D
+[Para [Str "Close:",Space,Str "\10007"]]
+```