Commit Graph

24 Commits

Author SHA1 Message Date
flyxyz123
f2b82b7884 Fix fold inside code fences 2023-04-02 13:30:41 -04:00
Tim Pope
feadbc81e2 Vim 9.0.0772 2022-10-16 16:44:22 -04:00
Tim Pope
b78bbce337 Add recommended styles, per modern runtime file idiom
Both the original spec on Daring Fireball and the more rigorous
CommonMark spec state that a tab at the beginning of the line is
synonymous with 4 spaces.  For the record, I think this was a mistake,
but if you can't beat 'em, join 'em.
2022-04-02 15:40:07 -04:00
Jaehwang Jerry Jung
23213f39db Fix undo_ftplugin
Add the missing bar and setl command, which previously hadn't been
necessary until the addition of [[ and ]] maps.
2022-01-10 12:09:22 -05:00
Tim Pope
ed76403b2e Change from email to URL 2021-09-13 19:13:50 -04:00
Tim Pope
82a10f4137 Always indent 4 spaces after reference-style link
References: https://github.com/vim/vim/pull/8859
2021-09-13 18:44:46 -04:00
flyxyz123
3cdd8a9b76 Fix folding of headers adjacent to code blocks
Resolves: https://github.com/tpope/vim-markdown/issues/177
2021-06-19 13:15:26 -04:00
Tim Pope
855b8915e0 Do the right thing for g:markdown_folding == 0 2021-03-11 13:29:54 -05:00
Ash Holland
a1ed88889c Recognise indented bulleted lists for wrapping 2020-09-04 18:34:22 -04:00
Greg Anders
f35c43c535 Update [[ and ]] mappings
1. Add support for setext style headings
2. Use the 's' flag in search() to set the ' mark instead of using m'
3. Fix the guard
2020-02-01 11:47:08 -05:00
Tim Pope
191438f358 Add [[ and ]] maps
Hat tip to Joe Reynolds for the idea.
2020-01-30 11:57:41 -05:00
Tim Pope
a273e6d1f3 Vim 8.2 2019-12-12 13:54:51 -05:00
Tim Pope
1a436852ac Clean up folding code 2019-12-01 04:27:35 -05:00
Alex Vear
a2e123a288 Prevent the folding of heading syntax in code fences
Previously in Markdown files, Vim would treat heading syntax in code
fences as Markdown headers. This commit ensures that only headers will
be folded by checking the 'synIDattr' of the item.

E.g. The comment in this code snippet would have been treated as a
Markdown header.

```sh
 # This is a comment
 echo "Hello world"
```
2019-08-15 18:53:44 -04:00
David Palma
fd3f4831be Fix for slowness due to folds (#143) 2019-07-24 16:59:55 -04:00
Ian Edington
1e6798717a Added markdown foldtext function
Addresses an issue metioned in tpope/vim-markdown#10 of adding a
foldtext function.

- Displays == and -- headers as # and ##
- Use markdown header style instead of '+--' to show nesting

Given the example of

    This is Header One
    ==================
    This is Header Two
    -----------------
    ### This is Header Three
    This is a normal line

Instead of:

    +--  6 lines: This is Header One-----------------------------
    +---  4 lines: This is Header Two----------------------------
    +----  2 lines: ### This is Header Three---------------------

You get:

    # This is Header One [6 lines]-------------------------------
    ## This is Header Two [4 lines]------------------------------
    ### This is Header Three [2 lines]----------------------------
2017-05-01 15:03:38 -04:00
Steve Dignam
0df8de0b50 change markdown comment string to use html style comment 2016-03-05 14:18:01 -05:00
Sencer Selcuk
14977fb9df Indent the footnotes also. 2014-06-19 18:09:10 -04:00
Emil Loer
b02182ebbd Add folding support
Closes #10.
2014-03-19 01:07:38 -04:00
Drew Neil
a126974366 Add 'Last change: 2013 May 30' to headers 2013-11-16 16:48:16 +00:00
Tim Pope
dcdab0cd55 Strip r and o out of format options
Closes #25.
2012-08-06 22:45:15 -04:00
Tim Pope
fdc0f091c7 Work around users overriding ftplugin/html.vim 2011-12-21 22:45:33 -05:00
Tim Pope
2b18a53416 Don't unset include guard
Closes #7
2011-09-24 19:06:43 -04:00
Tim Pope
4be0ec4a0f Initial commit 2010-02-24 21:23:07 -05:00