From 48ae36e24c84905ae8e319df0baee3d26bd9b2ae Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 15 May 2014 10:10:45 +0100 Subject: [PATCH] Dev: Syntaxlighting without a specific brush should still be enhanced from MD --- .datatables-commit-sync | 2 +- examples/resources/syntax/shCore.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 8485fb6d..7fef1a36 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -9c35fdcedba2afacef4e92657cb8f9510ec72d59 +031e8b85d58dd043f6e436f8571bb18cccc7e816 diff --git a/examples/resources/syntax/shCore.js b/examples/resources/syntax/shCore.js index b47cdbc5..bd586f7c 100644 --- a/examples/resources/syntax/shCore.js +++ b/examples/resources/syntax/shCore.js @@ -768,6 +768,10 @@ function parseParams(str) if ( a ) { result['brush'] = a[1]; } + else if ( str && str.indexOf('multiline') !== -1 ) { + // Markdown code block without a language identifier + result['brush'] = 'text'; + } return result; };