Skip to content

Fiech/misaka-bootstrap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credits

  1. The misaka_md2html.py converter was developed by Jason6Anderson, posted on Vimwiki issue 384
  2. Code highlighting support is provided by Pygments
  3. Equation rendering support is provided by MathJax
  4. Stylesheet colors are based on Solarized
  5. And all editing was done in Vimwiki

Installation

Requirements

  • 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

Installation

To install the bootstrapper just clone the repository into a local directory

git clone <repo_url> <local_dir>

Configuration

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:

  1. path_html must be set
  2. syntax should equal 'markdown'
  3. 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.

About

Boilerplate: Vimwiki-Markdown & Misaka

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.6%
  • CSS 47.4%