Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wolandark/redundant
A bunch of redundant functions to work with markdown and HTML
https://github.com/wolandark/redundant
html markdown vim vim-pl
Last synced: about 1 month ago
JSON representation
A bunch of redundant functions to work with markdown and HTML
- Host: GitHub
- URL: https://github.com/wolandark/redundant
- Owner: wolandark
- License: bsd-3-clause
- Created: 2023-09-22T10:18:26.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-22T10:50:27.000Z (over 1 year ago)
- Last Synced: 2024-11-07T17:07:00.315Z (3 months ago)
- Topics: html, markdown, vim, vim-pl
- Language: Vim Script
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### redundant
A bunch of redundant functions to work with markdown and HTML
I use a lot of HTML in my markdowns because of rtl
You could technically achive most of these with tpop's surround (technically).
yes I know pandoc exists! you done? 😒
This plugin is usefull for me, ymmv!By Wolandark
https://github.com/wolandark/redundant#### Installation
Native vim plugin system:```
git clone https://github.com/wolandark/redundant.git ~/.vim/pack/plugins/start/redundant
```or use vimplug or whatever
#### Functions
- `MKHeaderCur` Turn current line into an HTML header - needs arg 1-6
- `MKHeaderAll` Turning lines that start with \# into corresponding HTML header tags - needs arg 1-6
- `MKHeaderCurSmart` - Turn current line into an HTML header - smart
- `MKHeaderAllSmart` - Turn all lines that start with \# into corresponding HTML header tags - smart
- `MKRTlCur` - Make RTL div around current line
- `MKCenterCur` - Make align center div around current line
- `MKBlock` - Make a block qoute in MarkDown using \`\`\` around current line
- `MKStrong` - Make strong tags around current line
- `MKSmall` - Make small tags around current line
- `MKRed` - Make red div arround current line
- `MKYellow` - Make yellow div around current line