Skip to content

Commit

Permalink
Add DokuWiki reader (#5108)
Browse files Browse the repository at this point in the history
Closes #1792
  • Loading branch information
Alexander authored and jgm committed Jan 6, 2019
1 parent a5f5002 commit 40c30a9
Show file tree
Hide file tree
Showing 6 changed files with 855 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANUAL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ General options {.options}
- `creole` ([Creole 1.0])
- `docbook` ([DocBook])
- `docx` ([Word docx])
- `dokuwiki` ([DokuWiki markup])
- `epub` ([EPUB])
- `fb2` ([FictionBook2] e-book)
- `gfm` ([GitHub-Flavored Markdown]),
Expand Down
7 changes: 5 additions & 2 deletions pandoc.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ description: Pandoc is a Haskell library for converting from one markup
format to another, and a command-line tool that uses
this library. It can read several dialects of Markdown and
(subsets of) HTML, reStructuredText, LaTeX, DocBook, JATS,
MediaWiki markup, TWiki markup, TikiWiki markup, Creole 1.0,
Haddock markup, OPML, Emacs Org-Mode, Emacs Muse, txt2tags,
MediaWiki markup, DokuWiki markup, TWiki markup,
TikiWiki markup, Creole 1.0, Haddock markup, OPML,
Emacs Org-Mode, Emacs Muse, txt2tags,
Vimwiki, Word Docx, ODT, EPUB, FictionBook2, roff man,
and Textile, and it can write Markdown, reStructuredText,
XHTML, HTML 5, LaTeX, ConTeXt, DocBook, JATS, OPML, TEI,
Expand Down Expand Up @@ -467,6 +468,7 @@ library
Text.Pandoc.Readers.Muse,
Text.Pandoc.Readers.Man,
Text.Pandoc.Readers.FB2,
Text.Pandoc.Readers.DokuWiki,
Text.Pandoc.Writers,
Text.Pandoc.Writers.Native,
Text.Pandoc.Writers.Docbook,
Expand Down Expand Up @@ -696,6 +698,7 @@ test-suite test-pandoc
Tests.Readers.Creole
Tests.Readers.Man
Tests.Readers.FB2
Tests.Readers.DokuWiki
Tests.Writers.Native
Tests.Writers.ConTeXt
Tests.Writers.Docbook
Expand Down
3 changes: 3 additions & 0 deletions src/Text/Pandoc/Readers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module Text.Pandoc.Readers
, readMarkdown
, readCommonMark
, readCreole
, readDokuWiki
, readMediaWiki
, readVimwiki
, readRST
Expand Down Expand Up @@ -86,6 +87,7 @@ import Text.Pandoc.Readers.CommonMark
import Text.Pandoc.Readers.Creole
import Text.Pandoc.Readers.DocBook
import Text.Pandoc.Readers.Docx
import Text.Pandoc.Readers.DokuWiki
import Text.Pandoc.Readers.EPUB
import Text.Pandoc.Readers.FB2
import Text.Pandoc.Readers.Haddock
Expand Down Expand Up @@ -123,6 +125,7 @@ readers = [ ("native" , TextReader readNative)
,("markdown_mmd", TextReader readMarkdown)
,("commonmark" , TextReader readCommonMark)
,("creole" , TextReader readCreole)
,("dokuwiki" , TextReader readDokuWiki)
,("gfm" , TextReader readCommonMark)
,("rst" , TextReader readRST)
,("mediawiki" , TextReader readMediaWiki)
Expand Down
Loading

0 comments on commit 40c30a9

Please sign in to comment.