Added monospaced syntax highlighting for tables
This commit is contained in:
parent
1a50f117f1
commit
1cf0bba9e0
@ -7,19 +7,19 @@ Prism.languages.md = (function() {
|
|||||||
var latex = Prism.languages.latex;
|
var latex = Prism.languages.latex;
|
||||||
|
|
||||||
var md = {};
|
var md = {};
|
||||||
|
md['pre gfm'] = {
|
||||||
|
pattern: /^`{3}.*\n(?:[\s\S]*?)\n`{3} *$/gm,
|
||||||
|
inside: {
|
||||||
|
"md md-pre": /`{3}/,
|
||||||
|
lf: /\n/gm
|
||||||
|
}
|
||||||
|
};
|
||||||
md.pre = {
|
md.pre = {
|
||||||
pattern: /(^|(?:^|(?:^|\n)(?![ \t]*([*+\-]|\d+\.)[ \t]).*\n)\s*?\n)(\s*(?: {4}|\t).*(?:\n|$))+/g,
|
pattern: /(^|(?:^|(?:^|\n)(?![ \t]*([*+\-]|\d+\.)[ \t]).*\n)\s*?\n)(\s*(?: {4}|\t).*(?:\n|$))+/g,
|
||||||
lookbehind: true,
|
lookbehind: true,
|
||||||
inside: {
|
inside: {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
md['pre gfm'] = {
|
|
||||||
pattern: /^ {0,3}`{3}.*?\n(.*?\n)*? {0,3}`{3} *$/gm,
|
|
||||||
inside: {
|
|
||||||
"md md-pre": /`{3}/,
|
|
||||||
lf: /\n/gm,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
md['h1 alt'] = {
|
md['h1 alt'] = {
|
||||||
pattern: /^(.+)[ \t]*\n=+[ \t]*$/gm,
|
pattern: /^(.+)[ \t]*\n=+[ \t]*$/gm,
|
||||||
inside: {
|
inside: {
|
||||||
|
Loading…
Reference in New Issue
Block a user