Make markdown links consistent on cursor exits
Make the versions of link with and without * behave alike: - don't set the 0 location so that the cursor exits. Having a 0 in the title is bad because titles are short. - either open a new line at end for both, or for neither The only case where the newline is certain is for link definitions.
This commit is contained in:
parent
95024ce02a
commit
2b09325fc1
@ -6,41 +6,41 @@ snippet [
|
|||||||
[${1:text}](http://${2:address})
|
[${1:text}](http://${2:address})
|
||||||
snippet [*
|
snippet [*
|
||||||
[${1:link}](${2:`@*`})
|
[${1:link}](${2:`@*`})
|
||||||
|
|
||||||
snippet ["
|
snippet ["
|
||||||
[${1:text}](http://${2:address} "${0:title}")
|
[${1:text}](http://${2:address} "${3:title}")
|
||||||
snippet ["*
|
snippet ["*
|
||||||
[${1:link}](${2:`@*`} "${3:title}")
|
[${1:link}](${2:`@*`} "${3:title}")
|
||||||
|
|
||||||
snippet [:
|
snippet [:
|
||||||
[${1:id}]: http://${2:url}
|
[${1:id}]: http://${2:url}
|
||||||
|
|
||||||
snippet [:*
|
snippet [:*
|
||||||
[${1:id}]: ${2:`@*`}
|
[${1:id}]: ${2:`@*`}
|
||||||
|
|
||||||
snippet [:"
|
snippet [:"
|
||||||
[${1:id}]: http://${2:url} "${0:title}"
|
[${1:id}]: http://${2:url} "${3:title}"
|
||||||
|
|
||||||
snippet [:"*
|
snippet [:"*
|
||||||
[${1:id}]: ${2:`@*`} "${0:title}"
|
[${1:id}]: ${2:`@*`} "${3:title}"
|
||||||
|
|
||||||
snippet ![
|
snippet ![
|
||||||
![${1:alttext}](${2:/images/image.jpg})
|
![${1:alttext}](${2:/images/image.jpg})
|
||||||
snippet ![*
|
snippet ![*
|
||||||
![${1:alt}](${2:`@*`})
|
![${1:alt}](${2:`@*`})
|
||||||
|
|
||||||
snippet !["
|
snippet !["
|
||||||
![${1:alttext}](${2:/images/image.jpg} "${0:title}")
|
![${1:alttext}](${2:/images/image.jpg} "${3:title}")
|
||||||
snippet !["*
|
snippet !["*
|
||||||
![${1:alt}](${2:`@*`} "${3:title}")
|
![${1:alt}](${2:`@*`} "${3:title}")
|
||||||
|
|
||||||
snippet ![:
|
snippet ![:
|
||||||
![${1:id}]: ${2:url}
|
![${1:id}]: ${2:url}
|
||||||
|
|
||||||
snippet ![:*
|
snippet ![:*
|
||||||
![${1:id}]: ${2:`@*`}
|
![${1:id}]: ${2:`@*`}
|
||||||
|
|
||||||
snippet ![:"
|
snippet ![:"
|
||||||
![${1:id}]: ${2:url} "${0:title}"
|
![${1:id}]: ${2:url} "${3:title}"
|
||||||
|
|
||||||
snippet ![:"*
|
snippet ![:"*
|
||||||
![${1:id}]: ${2:`@*`} "${0:title}"
|
![${1:id}]: ${2:`@*`} "${3:title}"
|
||||||
|
|
||||||
snippet <
|
snippet <
|
||||||
<http://${1:url}>
|
<http://${1:url}>
|
||||||
|
Loading…
Reference in New Issue
Block a user