aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-12 20:30:26 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-12 20:30:26 -0800
commit250aa202505b077de548ecd19ba5f8b2867fe4ce (patch)
tree962125185ac63282cc195fa1e9d77bacc20d87d9 /src/pandoc.hs
parentc6b79d794eb25cb11777d2b720ce01595c780de1 (diff)
downloadpandoc-250aa202505b077de548ecd19ba5f8b2867fe4ce.tar.gz
Recognize .json extension as json reader/writer.
Diffstat (limited to 'src/pandoc.hs')
-rw-r--r--src/pandoc.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs
index daad7d43c..13f285f15 100644
--- a/src/pandoc.hs
+++ b/src/pandoc.hs
@@ -524,6 +524,7 @@ defaultReaderName fallback (x:xs) =
".lhs" -> "markdown+lhs"
".textile" -> "textile"
".native" -> "native"
+ ".json" -> "json"
_ -> defaultReaderName fallback xs
-- Returns True if extension of first source is .lhs
@@ -546,6 +547,7 @@ defaultWriterName x =
".rst" -> "rst"
".s5" -> "s5"
".native" -> "native"
+ ".json" -> "json"
".txt" -> "markdown"
".text" -> "markdown"
".md" -> "markdown"