markdown.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. ace.define("ace/snippets/markdown",[], 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. });
  94. (function() {
  95. ace.require(["ace/snippets/markdown"], function(m) {
  96. if (typeof module == "object" && typeof exports == "object" && module) {
  97. module.exports = m;
  98. }
  99. });
  100. })();