Added monospaced syntax highlighting for tables

This commit is contained in:
benweet 2014-05-21 23:55:51 +01:00
parent 1a50f117f1
commit 1cf0bba9e0

View File

@ -7,19 +7,19 @@ Prism.languages.md = (function() {
var latex = Prism.languages.latex;
var md = {};
md['pre gfm'] = {
pattern: /^`{3}.*\n(?:[\s\S]*?)\n`{3} *$/gm,
inside: {
"md md-pre": /`{3}/,
lf: /\n/gm
}
};
md.pre = {
pattern: /(^|(?:^|(?:^|\n)(?![ \t]*([*+\-]|\d+\.)[ \t]).*\n)\s*?\n)(\s*(?: {4}|\t).*(?:\n|$))+/g,
lookbehind: true,
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'] = {
pattern: /^(.+)[ \t]*\n=+[ \t]*$/gm,
inside: {