jason6 / vimwiki_md2html Goto Github PK
View Code? Open in Web Editor NEWIntegrated markdown to html processing for vimwiki
Integrated markdown to html processing for vimwiki
Thank you for this nice script to export vimwiki also with markdown to html.
The current HEAD of vimwiki at https://code.google.com/p/vimwiki/ provides the path to the templates to use.
Will there be and update soon to use the defined template for the conversion?
Daniel
An error "misaka_md2html.py: error: unrecognized arguments: - - - -".
The reason may be that args emplate_path,template_default,template_ext and root_path is parsed by vimwiki, but misaka_md2html.py ignore them.
So I can't quite figure out if this is an issue with vimwiki or something that should be added in this script, but when the filename of an input markdown file has spaces in it (which is understandable considering creating links that have spaces in them is common), like: /Users/username/vimwiki/hello world.md
, vimwiki passes the filename with the spaces...and with the current usage of argparse, the script understandably complains about not being able to find /Users/username/vimwiki/hello
.
So, is there a way to mess with argparse so it can handle spaces in the filenames (I don't know, but after ~20 mins of looking around, i can't find an easy way in this context), or is this an issue to be brought up with the vimwiki folks to change the filepath that's passed to a custom wiki2html script so it's delimited with quotes?
My .vimrc
setup:
let g:vimwiki_ext2syntax = {'.md': 'markdown'}
let g:vimwiki_list = [{'path': '~/vimwiki/',
\'syntax': 'markdown',
\'ext': '.md',
\'path_html': '~/vimwiki_html',
\'custom_wiki2html': '~/.vim/plugged/vimwiki_md2html/misaka_md2html.py'}]
With this setup when I ran :Vimwiki2HTML
, it threw some errors like:
SmartyPants not found
HTML_SKIP_STYLE etc not found.
unrecognized arguments: /home/mahbub/vimwiki/templates/ default .tpl
Idea of links in html working brought me to this repo. Would be thankful if you could help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.