` block. Useful for syntax highlighting.|
+|langPrefix |`string` |`'language-'`|??? |A string to prefix the className in a `` block. Useful for syntax highlighting.|
|mangle |`boolean` |`true` |??? |??? |
|pedantic |`boolean` |`false` |??? |If true, conform to the original `markdown.pl` as much as possible. Don't fix original markdown bugs or behavior. Turns off and overrides `gfm`.|
|renderer |`object` |`new Renderer()`|???|An object containing functions to render tokens to HTML. See [extensibility](USING_PRO.md) for more details.|
diff --git a/lib/marked.js b/lib/marked.js
index b929ffb5d4..33c02d9cf4 100644
--- a/lib/marked.js
+++ b/lib/marked.js
@@ -1470,7 +1470,7 @@ marked.getDefaults = function () {
headerIds: true,
headerPrefix: '',
highlight: null,
- langPrefix: 'lang-',
+ langPrefix: 'language-',
mangle: true,
pedantic: false,
renderer: new Renderer(),
diff --git a/test/new/gfm_code.html b/test/new/gfm_code.html
index 438acdf8eb..0e8c693196 100644
--- a/test/new/gfm_code.html
+++ b/test/new/gfm_code.html
@@ -1,16 +1,16 @@
-var a = 'hello';
+var a = 'hello';
console.log(a + ' world');
-echo "hello, ${WORLD}"
-Q: What do you call a tall person who sells stolen goods?
-A longfence!
+echo "hello, ${WORLD}"
+Q: What do you call a tall person who sells stolen goods?
+A longfence!
How about an empty code block?
-
+
How about a code block with only an empty line?
-
+
With some trailing empty lines:
ciao
-
\ No newline at end of file
+
diff --git a/test/new/gfm_code_hr_list.html b/test/new/gfm_code_hr_list.html
index 9fbd0fb9dd..d15b52fe02 100644
--- a/test/new/gfm_code_hr_list.html
+++ b/test/new/gfm_code_hr_list.html
@@ -22,11 +22,11 @@ foo
foo:
foo bar
bar:
- some code here
+ some code here
foo bar
bar:
- foo
+ foo
---
bar
---
@@ -34,7 +34,7 @@ foo
bar
foo bar
bar:
- ---
+ ---
foo
foo
---
diff --git a/test/specs/commonmark/commonmark-spec.js b/test/specs/commonmark/commonmark-spec.js
index 280824f1c0..4205044586 100644
--- a/test/specs/commonmark/commonmark-spec.js
+++ b/test/specs/commonmark/commonmark-spec.js
@@ -155,7 +155,7 @@ describe('CommonMark 0.28 Fenced code blocks', function() {
var section = 'Fenced code blocks';
// var shouldPassButFails = [];
- var shouldPassButFails = [93, 95, 96, 97, 101, 102, 106, 108, 111, 112, 113];
+ var shouldPassButFails = [93, 95, 96, 97, 101, 102, 106, 108, 112];
var willNotBeAttemptedByCoreTeam = [];