khinsen / ox-wikitext

A WikiText export for Emacs org-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WikiText Back-End for Org Export Engine

ox-wikitext.el

GNU/Emacs Org mode backend for exporting files to WikiText format, to be used in TiddlyWiki.

This is a derived backend which uses ox-html as a base to export the file to a tiddler. As probably I use only a small subset of the wholeness of org-mode markup, this backend is most likely to be rather incomplete; anything not covered here is exported as html code, which is enough for most purposes.

Of course, if think this is not enough for you, feel free to open an issue and/or send a pull request; any feedback is always welcome! =)

Requirements

This was tested on GNU Emacs 24.5.1 and Org mode 8.3.4.

Demo

Text formatting

You can make words bold, italic, underlined, code and verbatim, and, if you must, strike-through.

You can also try some “extreme” cases:

  • *bold italic*
  • /italic bold/
  • *bold underline*
  • _underlined bold_

You can also add an horizontal rule:


Tables

Here a simple table:

ab
cd
Income May 2012Income June 2012
Joe1210
Alice2224
Bob1617
sum5051
June 2012 (from above)plus 20 percentJune 2013Difference
Joe1012.011-1.0
Alice2428.8312.2
Bob1720.4210.6
sum511.8

Math

Math is supported by MathJax, through the tw5-mathjax-plugin.

When \(a ≠ 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are \begin{equation} x = \frac{-b ± \sqrt{b^2-4ac}}{2a}. \end{equation}

About

A WikiText export for Emacs org-mode


Languages

Language:Emacs Lisp 100.0%