From f36de77a2586d314d8de25c3c2a48fb5f95cafc9 Mon Sep 17 00:00:00 2001 From: schrieveslaach Date: Sun, 11 Jun 2017 07:47:42 +0200 Subject: Support for \faCheck and \faClose (#3727) --- 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 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"]] +``` -- cgit v1.2.3