summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Pancake.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Pancake.hs b/Pancake.hs
index 547b66f..e80fa2e 100644
--- a/Pancake.hs
+++ b/Pancake.hs
@@ -151,6 +151,8 @@ readDoc cmd uri = do
gopher = pure . P.StringReader . const $ pure . readGopher
byExtension "" = Left "No extension"
byExtension ".md" = P.getReader "markdown"
+ byExtension ".ltx" = P.getReader "latex"
+ byExtension ".tex" = P.getReader "latex"
byExtension ".txt" = pure . P.StringReader . const $ pure . readPlain
byExtension ext = P.getReader $ tail ext