Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable mediawiki export format #1544

Closed
fujexo opened this issue Jun 24, 2020 · 0 comments · Fixed by #1624
Closed

Enable mediawiki export format #1544

fujexo opened this issue Jun 24, 2020 · 0 comments · Fixed by #1624

Comments

@fujexo
Copy link
Contributor

fujexo commented Jun 24, 2020

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

edgarogh pushed a commit to WartaPoirier-corp/codimd that referenced this issue Sep 21, 2021
…rors

fix(image-upload): Fix swallowing of errors for filesystem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant