2022-09-20 11:43:28 -04:00
|
|
|
/*! `markdown` grammar compiled for Highlight.js 11.6.0 */
|
|
|
|
(()=>{var e=(()=>{"use strict";return e=>{const n={begin:/<\/?[A-Za-z_]/,
|
|
|
|
end:">",subLanguage:"xml",relevance:0},a={variants:[{begin:/\[.+?\]\[.*?\]/,
|
|
|
|
relevance:0},{
|
|
|
|
begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,
|
|
|
|
relevance:2},{
|
|
|
|
begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),
|
2021-03-10 11:35:00 -05:00
|
|
|
relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{
|
2022-09-20 11:43:28 -04:00
|
|
|
begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/
|
|
|
|
},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,
|
2021-03-10 11:35:00 -05:00
|
|
|
returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",
|
|
|
|
excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",
|
2022-09-20 11:43:28 -04:00
|
|
|
end:"\\]",excludeBegin:!0,excludeEnd:!0}]},i={className:"strong",contains:[],
|
|
|
|
variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},s={
|
2021-03-10 11:35:00 -05:00
|
|
|
className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{
|
2022-09-20 11:43:28 -04:00
|
|
|
begin:/_(?!_)/,end:/_/,relevance:0}]},c=e.inherit(i,{contains:[]
|
|
|
|
}),t=e.inherit(s,{contains:[]});i.contains.push(t),s.contains.push(c)
|
|
|
|
;let g=[n,a];return[i,s,c,t].forEach((e=>{e.contains=e.contains.concat(g)
|
|
|
|
})),g=g.concat(i,s),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{
|
|
|
|
className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:g},{
|
2021-03-10 11:35:00 -05:00
|
|
|
begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",
|
2022-09-20 11:43:28 -04:00
|
|
|
contains:g}]}]},n,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",
|
|
|
|
end:"\\s+",excludeEnd:!0},i,s,{className:"quote",begin:"^>\\s+",contains:g,
|
2021-03-10 11:35:00 -05:00
|
|
|
end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{
|
|
|
|
begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{
|
|
|
|
begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",
|
|
|
|
contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{
|
2022-09-20 11:43:28 -04:00
|
|
|
begin:"^[-\\*]{3,}",end:"$"},a,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{
|
2021-03-10 11:35:00 -05:00
|
|
|
className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{
|
2022-09-20 11:43:28 -04:00
|
|
|
className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}})()
|
|
|
|
;hljs.registerLanguage("markdown",e)})();
|