4 ms·
Some bugs with vim-livedown: - I couldn't get it to work with the after/mkd directory via pathogen. Not sure why. Moving the small bits of vimscript up in the
by pixelmonkey 12y ago
Some bugs with vim-livedown:
- I couldn't get it to work with the after/mkd directory via pathogen. Not sure why. Moving the small bits of vimscript up in the load order worked for me.
- I think the behavior of making it auto-open upon buffer switch is un-vimlike and probably annoying. Better to just support the LivedownPreview() function. (Also, the other function has code repetition it seems.)
- The npm module (livedown) uses highlight.js for code highlighting with default options. For a standard README.md I just opened, it thought some Python code blocks were alternatively nginx or bash, because they were very short, thus did wrong syntax highlighting. You probably want to turn off language auto-detection. You can do this by doing
hljs.configure({languages: []})
before calling hljs.highlightBlock(). HTH. I'll also open a Github issue about this.
- shime 12y agoThank you for reporting this! Opened issues from your comment.