diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-12-12 20:30:26 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-12-12 20:30:26 -0800 |
commit | 250aa202505b077de548ecd19ba5f8b2867fe4ce (patch) | |
tree | 962125185ac63282cc195fa1e9d77bacc20d87d9 | |
parent | c6b79d794eb25cb11777d2b720ce01595c780de1 (diff) | |
download | pandoc-250aa202505b077de548ecd19ba5f8b2867fe4ce.tar.gz |
Recognize .json extension as json reader/writer.
-rw-r--r-- | src/pandoc.hs | 2 |
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" |