Description
We are planning to use CodiMD in favor of Etherpad in the future.
However, we are saving the pads (meeting notes and more) to a mediawiki instance if the pads are needed after writing. We have the VisualEditor installed which works to a certain degree by pasting the rendered html into mediawiki but has some problems like tagging Mediawiki links with <nowiki>
I've tried to enable the Pandoc Export to Mediawiki syntax feature by adding a new option to
codimd/public/views/shared/pandoc-export-modal.ejs
Lines 13 to 24 in 7b14845
--- pandoc-export-modal.ejs 2020-06-24 11:01:12.337286426 +0200
+++ pandoc-export-modal.ejs 2020-06-24 11:01:54.293954281 +0200
@@ -21,6 +21,7 @@
<option value="rtf">Rich Text Format (.rtf)</option>
<option value="textile">Textile</option>
<option value="docx">Word (.docx)</option>
+ <option value="mediawiki">Mediawiki</option>
</select>
</div>
<div class="modal-footer">
After restarting the node server process, the option was available.
I've downloaded the resulting file and imported it into mediawiki by using the source editor. Looked very good except tables which are currently a bit broken.
Are there any points against enabling the mediawiki export option by default? There are many more options which could be enabled in https://github.com/hackmdio/pandoc.js/blob/309feae022b6a9ba49daddd54b0bb55a3484da30/src/index.ts#L72.
The best option would be to make the export formats configurable so one could enable different formats for his instance. However, I am not sure how to do this, I don't write nodejs really :)