Z27
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
> {
"description": "Markdown syntax with support for [GitHub Markdown](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown) extensions, like fenced code blocks, and ~strikethrough~.",
"author": "Agile Tortoise, Inc.",
"sampleText": "# GitHub Markdown Syntax\n\nSupports **bold**, _italic_, ~strikethrough~, and other Markdown syntax.\n\n* Lists\n* Lists\n\n> Quotations\n\n```\nFenced code block\n```\n",
"fileExtensions": [
"markdown",
"mkdown",
"md",
"mdown"
],
"indentationPatterns": [
{
"match": "(^\\h*\\* |^\\h*\\- |^\\h*\\+ |^\\h*\\d+\\. |^\\h*>[> ]+).*",
"exclusive": true,
"comment": "Indent Markdown lists and blockquotes",
"indentCapture": "1",
"indentScope": "text.normal"
}
],
"listCompletionDefinitions": [
{
"comment": "",
"enabled": true,
"match": "(^[ |\\t]*)((\\* \\[[ x]\\]|- \\[[ x]\\]|\\+ \\[[ x]\\]|\\*|-|\\+|>) )(.*)",
"captures": {
"indent": "1",
"prefix": "2",
"line": "4",
"sequence": ""
},
"replacements": {
"[x]": "[ ]",
"{x}": "{ }",
"{-}": "{ }"
}
},
{
"comment": "",
"enabled": true,
"match": "(^[ |\\t]*)((\\d+)\\. (\\[[ x]\\] )?)(.*)",
"sequencePadding": "0",
"captures": {
"indent": "1",
"prefix": "2",
"line": "5",
"sequence": "3"
},
"replacements": {
"[x]": "[ ]",
"{x}": "{ }",
"{-}": "{ }"
}
}
],
"rangeExtensionType": {
"default": "lookAround2000",
"macOS": "lookAround2000"
},
"patterns": [
{
"match": "(?s)(^```)(\\w*$\\n)(.+?)(?=^```)(^```)",
"exclusive": true,
"comment": "Fenced code blocks using ```",
"captures": {
"1": {
"scope": "markup.code"
},
"2": {
"scope": "markup.code"
}
,
"3": {
"scope": "code.block"
},
"4": {
"scope": "markup.code"
}
}
},
{
"match": "^(#) ([^\\n]+?)(( \\1)?)$",
"exclusive": true,
"comment": "Markdown heading like #",
"captures": {
"1": {
"scope": "markup.heading"
},
"2": {
"scope": "text.heading01"
},
"3": {
"scope": "markup.heading"
}
}
},
{
"match": "^(##) ([^\\n]+?)(( \\1)?)$",
"exclusive": true,
"comment": "Markdown heading like ##",
"captures": {
"1": {
"scope": "markup.heading"
},
"2": {
"scope": "text.heading02"
},
"3": {
"scope": "markup.heading"
}
}
},
{
"match": "^(###) ([^\\n]+?)(( \\1)?)$",
"exclusive": true,
"comment": "Markdown heading like ###",
"captures": {
"1": {
"scope": "markup.heading"
},
"2": {
"scope": "text.heading03"
},
"3": {
"scope": "markup.heading"
}
}
},
{
"match": "^(####) ([^\\n]+?)(( \\1)?)$",
"exclusive": true,
"comment": "Markdown heading like ####",
"captures": {
"1": {
"scope": "markup.heading"
},
"2": {
"scope": "text.heading04"
},
"3": {
"scope": "markup.heading"
}
}
},
{
"match": "^(#####) ([^\\n]+?)(( \\1)?)$",
"exclusive": true,
"comment": "Markdown heading like #####",
"captures": {
"1": {
"scope": "markup.heading"
},
"2": {
"scope": "text.heading05"
},
"3": {
"scope": "markup.heading"
}
}
},
{
"match": "^(######) ([^\\n]+?)(( \\1)?)$",
"exclusive": true,
"comment": "Markdown heading like ######",
"captures": {
"1": {
"scope": "markup.heading"
},
"2": {
"scope": "text.heading06"
},
"3": {
"scope": "markup.heading"
}
}
},
{
"match": "^( {4,}(?![->\\*\\+] )(?!\\d+\\. )|\\t{1,}(?![->\\*\\+] )(?!\\d+\\. ))(\\S+.*)",
"exclusive": true,
"comment": "Markdown code blocks starting with 4 spaces or tab",
"captures": {
"1": {
"scope": "code.block"
},
"2": {
"scope": "code.block"
}
}
},
{
"match": "^([*\\-]{3,})$",
"exclusive": true,
"comment": "Horizontal rule like *** or ---",
"captures": {
"1": {
"scope": "markup"
}
}
},
{
"match": "^\\h*(\\*|\\-|\\+|\\d+\\.) ",
"exclusive": false,
"comment": "Markdown list lines starting with whitespace and -,+,*",
"captures": {
"1": {
"scope": "markup.list"
}
}
},
{
"match": "^(\\h*>[> ]+)(.*)",
"exclusive": false,
"comment": "Markdown quotes starting with > ",
"captures": {
"1": {
"scope": "markup.quotation"
},
"2": {
"scope": "text.quotation"
}
}
},
{
"match": "((?|<|\\n]{1,300}>)",
"exclusive": false,
"comment": "html tags",
"captures": {
"1": {
"scope": "markup"
}
}
}
],
"linkDefinitions": [
{
"match": "(\\[\\[)(((d|u|s|w|google|wikipedia|bear|url):)?([^\\[]+?))(\\]\\])",
"templates": {
"": "drafts://open?title=[[value]]&allowCreate=true",
"google": "https://www.google.com/search?q=[[value]]",
"wikipedia": "https://en.wikipedia.org/wiki/[[value]]",
"u": "drafts://open?uuid=[[value]]",
"d": "drafts://open?title=[[value]]&allowCreate=true",
"bear": "bear://x-callback-url/open-note?title=[[value]]",
"w": "drafts://workspace?name=[[value]]",
"s": "drafts://quickSearch?query=[[value]]",
"url": "[[value_unencoded]]"
},
"enabled": true,
"captures": {
"value": "5",
"key": "4",
"prefix": "1",
"suffix": "6",
"link": "2"
},
"scopes": {
"value": "text.italic",
"key": "text.bold",
"prefix": "markup",
"suffix": "markup"
}
}
],
"taskMarkDefinitions": [
{
"match": "(\\[[ xX]\\])",
"states": [
"[ ]",
"[x]"
],
"enabled": true,
"rangeType": "task",
"captures": {
"state": "1",
"interactive": "1"
},
"scopes": {
"interactive": "text.monospace.bold"
}
}
],
"navigationPatterns": [
{
"match": "^# (.*)$",
"rangeCapture": "0",
"comment": "H1 level markdown headers with #",
"prefix": "H1",
"labelCapture": "1",
"identifierCapture": "1",
"level": 0
},
{
"match": "^## (.*)$",
"comment": "H2 level markdown headers with ##",
"prefix": "H2",
"rangeCapture": "0",
"labelCapture": "1",
"identifierCapture": "1",
"level": 1
},
{
"match": "^### (.*)$",
"comment": "H3 level markdown headers with ###",
"prefix": "H3",
"rangeCapture": "0",
"labelCapture": "1",
"identifierCapture": "1",
"level": 2
},
{
"match": "^#### (.*)$",
"comment": "H4 level markdown headers with ####",
"prefix": "H4",
"rangeCapture": "0",
"labelCapture": "1",
"identifierCapture": "1",
"level": 3
},
{
"match": "^##### (.*)$",
"comment": "H5 level markdown headers with #####",
"prefix": "H5",
"rangeCapture": "0",
"labelCapture": "1",
"identifierCapture": "1",
"level": 4
},
{
"match": "^###### (.*)$",
"comment": "H6 level markdown headers with ######",
"prefix": "H6",
"rangeCapture": "0",
"labelCapture": "1",
"identifierCapture": "1",
"level": 5
}
],
"scopeName": "text.markdown",
"name": "GitHub Markdown",
"autocompleteDefinitions": [
{
"trigger": "[[",
"type": "draft",
"label": "[[display_title]]",
"value": "[[display_title]]",
"queryType": "title",
"queryTagFilter": "",
"prefix": "[[",
"suffix": "]]",
"enabled": true
},
{
"trigger": "<<",
"type": "draft",
"label": "[[display_title]]",
"value": "[[draft]]",
"queryType": "title",
"queryTagFilter": "",
"prefix": "",
"suffix": "",
"enabled": true
}
]
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.