- The
misaka_md2html.py
converter was developed by Jason6Anderson, posted on Vimwiki issue 384 - Code highlighting support is provided by Pygments
- Equation rendering support is provided by MathJax
- Stylesheet colors are based on Solarized
- And all editing was done in Vimwiki
- python3
- misaka
- Jinja2
- houdini.py
- Pygments
Note: misaka, Jinja2, houdini.py and Pygments can be installed using pip install <package>
or similar.
To install all requirements on Ubuntu 15.04 use:
sudo apt-get install python3 python3-pip python3-misaka python3-jinja2 python3-pygments
sudo pip3 install houdini.py
To install the bootstrapper just clone the repository into a local directory
git clone <repo_url> <local_dir>
In your .vimrc use a vimwiki configuration similar to:
" Configuration for Misaka Bootstrap
let g:vimwiki_list = [{
\ 'syntax' : 'markdown',
\ 'ext' : '.md',
\ 'template_default': 'default',
\ 'template_ext': '.html',
\ 'index' : 'README',
\ 'path_html' : '<local_dir>/Html/',
\ 'nested_syntaxes' : {'ruby': 'ruby', 'python': 'python', 'c++': 'cpp', 'sh': 'sh', 'bash': 'sh', 'r': 'R', 'R': 'R', 'vim': 'vim', 'objc': 'objc', 'xml': 'html', 'html': 'html', 'jscript': 'javascript', 'javascript': 'javascript', 'css': 'css', 'ascript': 'applescript', 'mkd': 'markdown'},
\ 'custom_wiki2html' : '<local_dir>/bin/misaka_md2html.py',
\ 'list_margin' : 1,
\ 'force' : 1,
\ 'temp' : 0,
\ 'template_path': '~/vimwiki/templates',
\ }]
Note: As of now, template_default, template_ext and template_path have no impact on how misaka_md2html.py behaves.
The following rules apply:
- path_html must be set
- syntax should equal 'markdown'
- css_name should point to the css file you want to use. It has a default value of style.css so copying the provided style.css from autoload/vimwiki/ to your path_html should be sufficient to get started.