Last active
April 29, 2016 10:24
-
-
Save onigra/67f1d1e758ca5a08cf6f to your computer and use it in GitHub Desktop.
markdown to redmine style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! MarkdownToRedmine() | |
%s/######/h6./g | |
%s/#####/h5./g | |
%s/####/h4./g | |
%s/###/h3./g | |
%s/##/h2./g | |
%s/#/h1./g | |
%s/```\(.\+\)/<pre><code class=\"\1\">/g | |
%s/```/<\/pre>/g | |
endfunction | |
command! MdtoRm call MarkdownToRedmine() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test1
aaaaaaa
test2
bbbbbb
test3
ccccc
test4
ddddd
test5
eeeew
test6
fffffff