aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"