Skip to content

Enable mediawiki export format #1544

Closed
@fujexo

Description

@fujexo

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

<select name="output" id="output" class="form-control">
<option value="asciidoc">AsciiDoc</option>
<option value="context">ConTeXt</option>
<option value="epub">EPUB (.epub)</option>
<option value="epub3">EPUB v3 (.epub3)</option>
<option value="latex">LaTeX</option>
<option value="odt">OpenOffice (.odt)</option>
<option value="rst">reStructuredText (.rst)</option>
<option value="rtf">Rich Text Format (.rtf)</option>
<option value="textile">Textile</option>
<option value="docx">Word (.docx)</option>
</select>

--- 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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions