Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdonaldson/vim-markdown-link-convert
A simple script to convert inline markdown links to references.
https://github.com/jdonaldson/vim-markdown-link-convert
Last synced: about 1 month ago
JSON representation
A simple script to convert inline markdown links to references.
- Host: GitHub
- URL: https://github.com/jdonaldson/vim-markdown-link-convert
- Owner: jdonaldson
- Created: 2014-03-20T23:02:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-19T14:06:14.000Z (over 10 years ago)
- Last Synced: 2023-03-11T08:13:00.044Z (almost 2 years ago)
- Language: Ruby
- Size: 152 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-markdown-link-convert
This is a shameless rip-off of [John Gruber's ruby
script][gist] that I've converted into a vim
command. You'll need ruby for this to work.The command is: `:Inline2Ref`, and it works on the current markdown buffer.
The script changes markdown syntax like :
```markdown
Check out the documentation for
[vim-markdown-link-convert](https://github.com/jdonaldson/vim-markdown-link-convert).
```
into```markdown
Check out the documentation for [vim-markdown-link-convert][github].\[github]: https://github.com/jdonaldson/vim-markdown-link-convert
```
(note that the backslash up there is due to a problem with the way github
encodes markdown inside of code comments).This can make it easier to write in plaintext without having the links dominate
the line length.[gist]: https://gist.github.com/gruber/1207378