Note: If you are already familiar with Markdown, you might want to look at the source of this wiki, which is itself created with MDwiki.
MDWiki uses Markdown as a markup language. No knowledge of HTML or CSS is required to construct a website.
A simple index.md
could look like:
Heading
=======
SubHeading
----------
* list item 1
* list item 2
This is a hyperlink to [Google](http://google.com).
Images are like hyperlinks, but with an exclamation mark in front of them:

MDwiki uses the GitHub flavored markdown dialect, so you can i.e. add tables:
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
See the GitHub Markdown Cheatsheet for detailed GFM reference.
All you have to do is upload your markdown files with an .md
file extension together with the mdwiki.html and access them via the hashbang #!
character:
http://example.com/mdwiki.html#!myfile.md
It is advised that you create an index.md
file which serves as a starting point for your wiki when no parameter is given - in this case MDwiki will automatically fetch and display the index.md
. If you also rename the mdwiki.html
file into index.html
, there are no parameters required and you can access your wiki at http://example.com/
!
Create a navigation.md
file in the same directory as the mdwiki.html
and put in the links that make up your menu:
# Your wiki name
[Home](home.md)
[About](about.md)
[Download](download.md)
The first line is a Markdown heading, which will be used as the website brand in the navbar. Standard Markdown links are to be used for the navbar entries.
For more complex menus, nesting submenu items as a list and using horizontal lines that will be rendered as dividers is also possible:
# Brand name
[Menu Item 1]()
* # SubMenu Heading 1
* [SubMenu Item 1](subitem1.md)
* [SubMenu Item 2](subitem2.md)
- - - -
* # SubMenu Heading 2
* [SubMenu Item 3](subitem3.md)
- - - -
* # SubMenu Heading 3
* [SubMenu Item 3](subitem3.md)
[Menu Item 2](item2.md)
- - - -
[Menu Item 3](item3.md)
If a bulleted list of links is supplied as in the above example, the list will become a dropdown in the navigation bar displaying a submenu. In order for this to work, the toplevel link has to have an empty target (see Menu Item 1 in the above example). Dropdown headings are also possible by prepending a single #
in front.
Links to anywhere in the web are done via regular Markdown links:
[Google](http://www.google.com)
Links within the wiki are just plain relative links:
[Go to download](download.md)
Internal links will be prefix automatically with the #!
hashbang:
Images are regularly placed as in standard markdown using the 
notation. MDwiki will create a nice highlight-like popup if you click an image. You can group images together by not putting an empty line in between them.
Example:






Will be rendered as:
To use an image as a link, use the following syntax:
[](http://www.linktarget.com)
Example:
[](http://www.placekitten.com)
MDwiki supports GFM like syntax highlighting. Put the name of the language after the backticks in the code block:
```javascript
var hello = function () {
// say hello
alert('Hello world!');
}
```
Will render as:
var hello = function () {
// say hello
alert('Hello world!');
}
Currently the following languages are supported:
Language | Keyword |
---|---|
Bash | bash |
C# | csharp |
Clojure | clojure |
C++ | cpp |
CSS | css |
CoffeeScript | coffeescript |
CMake | cmake |
HTML | html |
HTTP | http |
Java | java |
JavaScript | javascript |
JSON | json |
Markdown | markdown |
Objective C | objectivec |
Perl | perl |
PHP | php |
Python | python |
Ruby | ruby |
R | r |
SQL | sql |
Scala | scala |
Vala | vala |
XML | xml |
Through the usage of Gimmicks, which are like plugins, you can add much more dynamic elements into your wiki and use it in a very advanced way. See the Gimmicks page for a full reference.