Anthony
Anthony

Reputation: 21

Pandoc : convert dokuwiki with inline code to html

I have some documentation formatted in dokuwiki, with this inline code :

''%%database.url = jdbc:mysql://localhost:3306/your_database_name%%''

Based on this answer : Inline Code in DokuWiki it's the best way to write inline code with dokuwiki. The '%%' part prevents any wiki interpretion of your code.

With dokuwiki preview it is displayed correctly, the '%%' part is not displayed : database.url = jdbc:mysql://localhost:3306/your_database_name

But when I try to convert from dokuwiki to HTML with Pandoc, the '%%' part is still there and I have something like this in my HTML file : %%database.url = jdbc:mysql://localhost:3306/your_database_name%%

Am I missing something with the pandoc command ?

I use this command : pandoc dokuwiki_file.txt -f dokuwiki -t html5 -s -o html_file.html --metadata pagetitle="page title"

Thanks !

Upvotes: 2

Views: 611

Answers (1)

Floyd
Floyd

Reputation: 789

I would propose to preprocess the dokwiki markup using something like sed. Let me know if you need an example.

Upvotes: 0

Related Questions