Uwe Koloska <u...@koloro.de> writes: > there is this very nice export to text feature and the superb HTML export. > But > is it possible to convert org to some rich text notation used in wikis? I > would like to include some of my documents into a wiki (dokuwiki and > TWiki/Foswiki).
Below is another quick hack solution: a simple sed script which does a very basic translation between org-mode and mediawiki.
#!/bin/sed -f # headlines s/^\* \+\(.*\)$/== \1 ==/ s/^\*\* \+\(.*\)$/=== \1 ===/ s/^\*\*\* \+\(.*\)$/==== \1 ====/ s/^\*\*\*\* \+\(.*\)$/===== \1 =====/ s/^\*\*\*\*\* \+\(.*\)$/====== \1 ======/ # links s/\[\[\(.*\)\]\[\(.*\)\]\]/[\1 \2]/ # description lists s/^- \+\([^:]\+\)::\(.*\)$/; \1:\2/ s/^ \+// # lists s/^- \+\(.*\)$/* \1/ s/^ \{2\}- \+\(.*\)$/** \1/ s/^ \{4\}- \+\(.*\)$/*** \1/ s/^[1-9]\+\. \+\(.*\)$/# \1/ s/^ \{2\}[1-9]\+\. \+\(.*\)$/## \1/ s/^ \{4\}[1-9]\+\. \+\(.*\)$/### \1/ # source code s/^: \+\(.*\)$/ \1/ # emphasis, bold s/\*\([^*]\+\)\*/'''\1'''/ s/ \/\([^/]\+\)\/ / ''\1'' / # quotes s/^#+BEGIN_QUOTE$/<blockquote>/ s/^#+END_QUOTE$/<\/blockquote>/ # comments s/^#+.*$// # tables s/^|[-+]\+|$// s/^|\([^|]*\)|$/|-\n|\1/ s/^|\([^|]*\)|\([^|]*\)|$/|-\n|\1||\2/ s/^|\([^|]*\)|\([^|]*\)|\([^|]*\)|$/|-\n|\1||\2||\3/ s/^|\([^|]*\)|\([^|]*\)|\([^|]*\)|\([^|]*\)|$/|-\n|\1||\2||\3||\4/
Hope that helps Christian
_______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode