From e3ea6460fe42f07022a821727039072af6c79264 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 20 Nov 2014 19:06:47 +0100 Subject: [PATCH] Let the short version of links not have title and create versions with title with " Rationale: it is more common to have links without title in Markdown. --- snippets/markdown.snippets | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/snippets/markdown.snippets b/snippets/markdown.snippets index fd2f297..915a06f 100644 --- a/snippets/markdown.snippets +++ b/snippets/markdown.snippets @@ -3,23 +3,43 @@ # Includes octopress (http://octopress.org/) snippets snippet [ - [${1:text}](http://${2:address} "${0:title}") + [${1:text}](http://${2:address}) snippet [* + [${1:link}](${2:`@*`}) + +snippet [" + [${1:text}](http://${2:address} "${0:title}") +snippet ["* [${1:link}](${2:`@*`} "${3:title}") snippet [: - [${1:id}]: http://${2:url} "${0:title}" + [${1:id}]: http://${2:url} snippet [:* + [${1:id}]: ${2:`@*`} + +snippet [:" + [${1:id}]: http://${2:url} "${0:title}" +snippet [:"* [${1:id}]: ${2:`@*`} "${0:title}" snippet ![ - ![${1:alttext}](${2:/images/image.jpg} "${0:title}") + ![${1:alttext}](${2:/images/image.jpg}) snippet ![* + ![${1:alt}](${2:`@*`}) + +snippet ![" + ![${1:alttext}](${2:/images/image.jpg} "${0:title}") +snippet !["* ![${1:alt}](${2:`@*`} "${3:title}") snippet ![: - ![${1:id}]: ${2:url} "${0:title}" + ![${1:id}]: ${2:url} snippet ![:* + ![${1:id}]: ${2:`@*`} + +snippet ![:" + ![${1:id}]: ${2:url} "${0:title}" +snippet ![:"* ![${1:id}]: ${2:`@*`} "${0:title}" snippet ===