1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
Before:
unlet! b:link_skip_line
After:
unlet! b:link_skip_line
= 1 ============================================================================
Given markdown (Use default (commentstring) to skip lines):
Filler
Not a comment: [magna](www.magna.com)
<!-- this is a comment: [vitae](https://vitae.net/index.html) -->
Continued
> Blockquote: [lacus](http://lacus.org/lacus)
End
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Execute:
LinkConvertAll
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expect markdown:
Filler
Not a comment: [magna][0]
<!-- this is a comment: [vitae](https://vitae.net/index.html) -->
Continued
> Blockquote: [lacus](http://lacus.org/lacus)
End
## Links
[0]: www.magna.com
= 2 ============================================================================
Given markdown (Use custom pattern to skip lines):
Filler
Not a comment: [magna](www.magna.com)
<!-- this is a comment: [vitae](https://vitae.net/index.html) -->
Continued
> Blockquote: [lacus](http://lacus.org/lacus)
End
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Execute:
let b:link_skip_line = '^>'
LinkConvertAll
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expect markdown:
Filler
Not a comment: [magna][0]
<!-- this is a comment: [vitae][1] -->
Continued
> Blockquote: [lacus](http://lacus.org/lacus)
End
## Links
[0]: www.magna.com
[1]: https://vitae.net/index.html
= 3 ============================================================================
Given markdown (Use custom pattern '+' to skip lines):
alpha [magna](http://magna.com) bravo
+charlie [vitae](https://vitae.net/index.html) delta
echo [lacus](http://lacus.org/lacus) foxtrot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Execute:
let b:link_skip_line = '^+'
LinkConvertAll
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expect markdown:
alpha [magna][0] bravo
+charlie [vitae](https://vitae.net/index.html) delta
echo [lacus][1] foxtrot
## Links
[0]: http://magna.com
[1]: http://lacus.org/lacus
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|