aboutsummaryrefslogtreecommitdiff
path: root/src/pandoc.hs
diff options
context:
space:
mode:
authorPuneeth Chaganti <punchagan@gmail.com>2010-12-04 15:57:39 +0530
committerPuneeth Chaganti <punchagan@gmail.com>2010-12-04 15:57:39 +0530
commit921e2b6e67e0bcc0c6644b5455bf9d2e70f1a386 (patch)
tree93b38a4f11db9020e490016e063b52fb142b997d /src/pandoc.hs
parent5171de66c53b4117fd0f4b16ef53d037cce38eb4 (diff)
downloadpandoc-921e2b6e67e0bcc0c6644b5455bf9d2e70f1a386.tar.gz
Added Org-mode writer
+ Added Text/Pandoc/Writers/Org.hs + Added to pandoc.cabal + Added to pandoc.hs and Text/Pandoc.hs exports.
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 0cf694873..3aa9a4ba8 100644
--- a/src/pandoc.hs
+++ b/src/pandoc.hs
@@ -121,6 +121,7 @@ writers = [("native" , writeNative)
,("mediawiki" , writeMediaWiki)
,("textile" , writeTextile)
,("rtf" , writeRTF)
+ ,("org" , writeOrg)
]
isNonTextOutput :: String -> Bool
@@ -616,6 +617,7 @@ defaultWriterName x =
".db" -> "docbook"
".odt" -> "odt"
".epub" -> "epub"
+ ".org" -> "org"
['.',y] | y `elem` ['1'..'9'] -> "man"
_ -> "html"