Ⅰ. 插件描述
VIM syntax for markdown with nested MathJax(in LaTeX) support.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'drmingdrmer/vim-syntax-markdown'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'drmingdrmer/vim-syntax-markdown'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'drmingdrmer/vim-syntax-markdown'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/drmingdrmer/vim-syntax-markdown
Ⅳ. 文档说明
# vim-syntax-markdown
VIM syntax for markdown with nested MathJax(in LaTeX) support.
Before and After using this plugin:

<!-- <style> -->
<!-- img { -->
<!-- max-width: 100%; -->
<!-- } -->
<!-- </style> -->
Github Flavored Markdown Support
Reference: https://help.github.com/articles/github-flavored-markdown/
Support:
_as key_word instead of as an_error.- Highlight url: http://abc.com .
~~createsstrikethrough.

Embed Math formula in markdown:
# markdown with math
$ \frac{1}{x} $ is inline math formula.
$$ \frac{1}{x} $$ is block math formula.
\\( \frac{1}{x} \\) is inline math formula.
\\[ \frac{1}{x} \\] is block math formula.Installation
Installing with pathogen.vim
is recommended. Copy and paste:
cd ~/.vim/bundle
git clone git://github.com/drmingdrmer/vim-syntax-markdown.gitOr manually:
Download vim-syntax-markdown.zip
and unzip it into ~/.vim.
Credit
@c42f