mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-19 12:52:11 +01:00
Dev: Syntaxlighting without a specific brush should still be enhanced from MD
This commit is contained in:
parent
46e2b0a0db
commit
48ae36e24c
@ -1 +1 @@
|
|||||||
9c35fdcedba2afacef4e92657cb8f9510ec72d59
|
031e8b85d58dd043f6e436f8571bb18cccc7e816
|
||||||
|
4
examples/resources/syntax/shCore.js
vendored
4
examples/resources/syntax/shCore.js
vendored
@ -768,6 +768,10 @@ function parseParams(str)
|
|||||||
if ( a ) {
|
if ( a ) {
|
||||||
result['brush'] = a[1];
|
result['brush'] = a[1];
|
||||||
}
|
}
|
||||||
|
else if ( str && str.indexOf('multiline') !== -1 ) {
|
||||||
|
// Markdown code block without a language identifier
|
||||||
|
result['brush'] = 'text';
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user