markdown.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "aliases": [
  3. "md",
  4. "mkdown",
  5. "mkd"
  6. ],
  7. "contains": [
  8. {
  9. "className": "section",
  10. "variants": [
  11. {
  12. "begin": "^#{1,6}",
  13. "end": "$"
  14. },
  15. {
  16. "begin": "^.+?\\n[=-]{2,}$"
  17. }
  18. ]
  19. },
  20. {
  21. "begin": "<",
  22. "end": ">",
  23. "subLanguage": "xml",
  24. "relevance": 0
  25. },
  26. {
  27. "className": "bullet",
  28. "begin": "^\\s*([*+-]|(\\d+\\.))\\s+"
  29. },
  30. {
  31. "className": "strong",
  32. "begin": "[*_]{2}.+?[*_]{2}"
  33. },
  34. {
  35. "className": "emphasis",
  36. "variants": [
  37. {
  38. "begin": "\\*.+?\\*"
  39. },
  40. {
  41. "begin": "_.+?_",
  42. "relevance": 0
  43. }
  44. ]
  45. },
  46. {
  47. "className": "quote",
  48. "begin": "^>\\s+",
  49. "end": "$"
  50. },
  51. {
  52. "className": "code",
  53. "variants": [
  54. {
  55. "begin": "^```\\w*\\s*$",
  56. "end": "^```[ ]*$"
  57. },
  58. {
  59. "begin": "`.+?`"
  60. },
  61. {
  62. "begin": "^( {4}|\\t)",
  63. "end": "$",
  64. "relevance": 0
  65. }
  66. ]
  67. },
  68. {
  69. "begin": "^[-\\*]{3,}",
  70. "end": "$"
  71. },
  72. {
  73. "begin": "\\[.+?\\][\\(\\[].*?[\\)\\]]",
  74. "returnBegin": true,
  75. "contains": [
  76. {
  77. "className": "string",
  78. "begin": "\\[",
  79. "end": "\\]",
  80. "excludeBegin": true,
  81. "returnEnd": true,
  82. "relevance": 0
  83. },
  84. {
  85. "className": "link",
  86. "begin": "\\]\\(",
  87. "end": "\\)",
  88. "excludeBegin": true,
  89. "excludeEnd": true
  90. },
  91. {
  92. "className": "symbol",
  93. "begin": "\\]\\[",
  94. "end": "\\]",
  95. "excludeBegin": true,
  96. "excludeEnd": true
  97. }
  98. ],
  99. "relevance": 10
  100. },
  101. {
  102. "begin": "^\\[[^\\n]+\\]:",
  103. "returnBegin": true,
  104. "contains": [
  105. {
  106. "className": "symbol",
  107. "begin": "\\[",
  108. "end": "\\]",
  109. "excludeBegin": true,
  110. "excludeEnd": true
  111. },
  112. {
  113. "className": "link",
  114. "begin": ":\\s*",
  115. "end": "$",
  116. "excludeBegin": true
  117. }
  118. ]
  119. }
  120. ]
  121. }