From 2eb0eadc1cd8f6929163c719ee2c285c516915ec Mon Sep 17 00:00:00 2001 From: Marc Schreiber Date: Wed, 7 Jun 2017 13:38:49 +0200 Subject: [PATCH] Support for \faCheck and \faClose --- src/Text/Pandoc/Readers/LaTeX.hs | 3 +++ test/command/latex-fontawesome.md | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/command/latex-fontawesome.md diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index b65ae15ada31..8d1a5d97f5d3 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -681,6 +681,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 000000000000..2a7e911855b9 --- /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"]] +```