Skip to content

Commit

Permalink
add README entry
Browse files Browse the repository at this point in the history
  • Loading branch information
gko committed Nov 1, 2023
1 parent ba1c49c commit d459025
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,27 @@ The following options control which syntax extensions will be turned on. They ar

let g:vim_markdown_edit_url_in = 'tab'

### Borderless tables

- `g:vim_markdown_borderless_table`

Add support for borderless tables, such as:
```
header 1|header 2
--|--
data 1|data 2
```
if set to `1`:
let g:vim_markdown_borderless_table = 1
the table would be formatted as usual:
```
| header 1 | header 2 |
|----------|----------|
| data 1 | data 2 |
```
## Mappings
The following work on normal and visual modes:
Expand Down
24 changes: 24 additions & 0 deletions doc/vim-markdown.txt
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,30 @@ Change how to open new files ~
>
let g:vim_markdown_edit_url_in = 'tab'
<
-------------------------------------------------------------------------------
*vim-markdown-support-borderless-tables*
Support borderless tables ~

*g:vim_markdown_borderless_table*
- 'g:vim_markdown_borderless_table'

Add support for borderless tables, such as:
>
header 1|header 2
--|--
data 1|data 2
<
if set to 1:
>
let g:vim_markdown_borderless_table = 1
<
the table would be formatted as usual:
>
| header 1 | header 2 |
|----------|----------|
| data 1 | data 2 |
<

===============================================================================
*vim-markdown-mappings*
Mappings ~
Expand Down

0 comments on commit d459025

Please sign in to comment.