clockoon / dokuwiki-plugin-commonmark

Commonmark plugin for Dokuwiki
https://www.dokuwiki.org/plugin:commonmark
8 stars 3 forks source link
dokuwiki-plugin markdown

Dokuwiki Commonmark Plugin

Description

This is another plugin for parsing Commonmark / Markdown document in Dokuwiki.

While there are many Markdown plugins (for example, markdownu, mdpage) available, this plugin processes Markdown text in different approach:

  1. check that Markdown indicator ('\<!DOCTYPE markdown>') is included on the document
  2. if exists, parses entire document and renders to DW syntax
  3. After pre-rendering, passes the result to DW parser and process as usual

If you want to parse all DW pages as Commonmark without specific doctype, you can enable force_commonmark option on config. But this action may conflit with existing document of DW markup, so please use it carefully.

Compatibility

Commonmark plugin aims for complete compatiblity of Markdown in Dokuwiki. Most Markdown syntax have corresponding DW syntax, so it will work without problem; but in some cases, Markdown syntax do not matches DW specification one-by-one, or vice versa. Here is a list of known ambiguities between Commonmark and Dokuwiki, and its implements in the plugin:

```dokuwiki
<sub>subscript</sub>


Commonmark plugin would conflit with other markdown-related plugins, including [Mdpage](https://www.dokuwiki.org/plugin:mdpage).

Due to the concept, section edit will not work, or at least recognize the section as broken snippet rather than expected. This bug will be fixed in later version.

## License

- icons: Apache License from https://www.iconbolt.com/