markdown.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ace.define("ace/snippets/markdown",["require","exports","module"], function(require, exports, module) {
  2. "use strict";
  3. exports.snippetText = "# Markdown\n\
  4. \n\
  5. # Includes octopress (http://octopress.org/) snippets\n\
  6. \n\
  7. snippet [\n\
  8. [${1:text}](http://${2:address} \"${3:title}\")\n\
  9. snippet [*\n\
  10. [${1:link}](${2:`@*`} \"${3:title}\")${4}\n\
  11. \n\
  12. snippet [:\n\
  13. [${1:id}]: http://${2:url} \"${3:title}\"\n\
  14. snippet [:*\n\
  15. [${1:id}]: ${2:`@*`} \"${3:title}\"\n\
  16. \n\
  17. snippet ![\n\
  18. ![${1:alttext}](${2:/images/image.jpg} \"${3:title}\")\n\
  19. snippet ![*\n\
  20. ![${1:alt}](${2:`@*`} \"${3:title}\")${4}\n\
  21. \n\
  22. snippet ![:\n\
  23. ![${1:id}]: ${2:url} \"${3:title}\"\n\
  24. snippet ![:*\n\
  25. ![${1:id}]: ${2:`@*`} \"${3:title}\"\n\
  26. \n\
  27. snippet ===\n\
  28. regex /^/=+/=*//\n\
  29. ${PREV_LINE/./=/g}\n\
  30. \n\
  31. ${0}\n\
  32. snippet ---\n\
  33. regex /^/-+/-*//\n\
  34. ${PREV_LINE/./-/g}\n\
  35. \n\
  36. ${0}\n\
  37. snippet blockquote\n\
  38. {% blockquote %}\n\
  39. ${1:quote}\n\
  40. {% endblockquote %}\n\
  41. \n\
  42. snippet blockquote-author\n\
  43. {% blockquote ${1:author}, ${2:title} %}\n\
  44. ${3:quote}\n\
  45. {% endblockquote %}\n\
  46. \n\
  47. snippet blockquote-link\n\
  48. {% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\
  49. ${4:quote}\n\
  50. {% endblockquote %}\n\
  51. \n\
  52. snippet bt-codeblock-short\n\
  53. ```\n\
  54. ${1:code_snippet}\n\
  55. ```\n\
  56. \n\
  57. snippet bt-codeblock-full\n\
  58. ``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\
  59. ${5:code_snippet}\n\
  60. ```\n\
  61. \n\
  62. snippet codeblock-short\n\
  63. {% codeblock %}\n\
  64. ${1:code_snippet}\n\
  65. {% endcodeblock %}\n\
  66. \n\
  67. snippet codeblock-full\n\
  68. {% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\
  69. ${5:code_snippet}\n\
  70. {% endcodeblock %}\n\
  71. \n\
  72. snippet gist-full\n\
  73. {% gist ${1:gist_id} ${2:filename} %}\n\
  74. \n\
  75. snippet gist-short\n\
  76. {% gist ${1:gist_id} %}\n\
  77. \n\
  78. snippet img\n\
  79. {% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\
  80. \n\
  81. snippet youtube\n\
  82. {% youtube ${1:video_id} %}\n\
  83. \n\
  84. # The quote should appear only once in the text. It is inherently part of it.\n\
  85. # See http://octopress.org/docs/plugins/pullquote/ for more info.\n\
  86. \n\
  87. snippet pullquote\n\
  88. {% pullquote %}\n\
  89. ${1:text} {\" ${2:quote} \"} ${3:text}\n\
  90. {% endpullquote %}\n\
  91. ";
  92. exports.scope = "markdown";
  93. });