git.iko.soy/typeable/pandoc
on master help sign in
Recognize .json extension as json reader/writer.
commit250aa202505b077de548ecd19ba5f8b2867fe4ce authorJohn MacFarlane <jgm@berkeley.edu> dateSun 12 Dec 2010, 20:30 (16 years ago) parentc6b79d7
1 file changed+2
src/pandoc.hs+2
src/pandoc.hs+2
@@ -524,6 +524,7 @@ defaultReaderName fallback (x:xs) =
524524 ".lhs" -> "markdown+lhs"
525525 ".textile" -> "textile"
526526 ".native" -> "native"
527+ ".json" -> "json"
527528 _ -> defaultReaderName fallback xs
528529
529530-- Returns True if extension of first source is .lhs
@@ -546,6 +547,7 @@ defaultWriterName x =
546547 ".rst" -> "rst"
547548 ".s5" -> "s5"
548549 ".native" -> "native"
550+ ".json" -> "json"
549551 ".txt" -> "markdown"
550552 ".text" -> "markdown"
551553 ".md" -> "markdown"