Skip to content

Commit

Permalink
once again strip punct / special chars from fragment links (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
SidOfc committed Sep 25, 2020
1 parent ad11a1c commit 2278bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/mkdx.vim
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ let s:util.transformations = {
\ 'clean-header': [['^[ {{tokens.header}}]\+\| \+$', '', 'g'], ['\[!\[\([^\]]\+\)\](\([^\)]\+\))\](\([^\)]\+\))', '', 'g'],
\ ['<a.*>\(.*\)</a>', '\1', 'g'], ['!\?\[\([^\]]\+\)]([^)]\+)', '\1', 'g']],
\ 'header-to-hash': [['`<kbd>\(.*\)<\/kbd>`', 'kbd\1kbd', 'g'], ['<kbd>\(.*\)<\/kbd>', '\1', 'g'],
\ ['[^0-9[:lower:]\u4e00-\u9fff_\- ]\+', '', 'g'], [' ', '-', 'g']],
\ ['[^0-9[:lower:]\u4e00-\u9fff_\- ]\+', '', 'g'], ['[.,!@#$%^&*()=+"]', '', 'g'], [' ', '-', 'g']],
\ 'toggle-quote': [['^\(> \)\?', '\=(submatch(1) == "> " ? "" : "> ")', '']]
\ }

Expand Down

0 comments on commit 2278bae

Please sign in to comment.