Reputation: 333
Background: I was hoping to run Gollum to run a personal wiki that could just render marked up files I take notes in. But my primary machines are Windows... so that's not happening. Running a VM for it is just too much hassle for it's purpose.
Current Status: I'd like to give TiddyWiki5 a shot primarily because of it's awesome portability. But I'd also like to write/preserve my notes in MediaWiki syntax, to make it easier to port notes or even whole pages over to wikis I commit to.
I have unsuccessfully searched for a plugin to allow mediaWiki syntax.
Question: Does anyone know of a plugin or hack to add mediaWiki syntax support for TW5?
Alternative platform suggestions are also welcome.
Upvotes: 3
Views: 3199
Reputation: 333
Requirements:
So after some more research I've decided that for the time being it'd be easiest to just write TiddlyWiki entries in Markdown. Using the Markdown plugin.
Then just convert the markdown files to MediaWiki via Pandoc. Or rather using Pandoc through a Sublime Text plugin.
The settings for Sublime Text Pandoc by tbfisher (after installation) are under Preferences => Package Settings => Pandoc => Settings - User.
You also require the Sublime Text Mediawiker to provide the syntax setting for MediaWiki files.
My current (testing) settings are as follows:
{ "user":
{ "pandoc-path": "C:/Pandoc/pandoc.exe",
"transformations": {
"Markdown (Pandoc)": {
"scope": { "text.html.mediawiki" : "mediawiki" }
},
"MediaWiki" :{
"new-buffer": 1,
"scope": { "text.html.markdown" : "markdown" },
"syntax_file": "Packages/Mediawiker/Mediawiki.tmLanguage",
"pandoc-arguments": [
"--to=mediawiki"
]
},
"Markdown (GitHub)" : {
"new-buffer": 1,
"scope": {
"text.html.mediawiki" : "mediawiki+hard_line_breaks",
"text.html.markdown" : "markdown"
},
"syntax_file": "Packages/Markdown/Markdown.tmLanguage",
"pandoc-arguments": [
"--to=markdown_github",
"--atx-headers"
]
}
}
}
}
Upvotes: 2