diff --git a/lib/presets/commonmark.js b/lib/presets/commonmark.js
index 7066553..e1fc429 100644
--- a/lib/presets/commonmark.js
+++ b/lib/presets/commonmark.js
@@ -5,7 +5,7 @@
module.exports = {
options: {
- html: true, // Enable HTML tags in source
+ html: false, // Enable HTML tags in source
xhtmlOut: true, // Use '/' to close single tags (
)
breaks: false, // Convert '\n' in paragraphs into
langPrefix: 'language-', // CSS language prefix for fenced blocks
diff --git a/test/commonmark.js b/test/commonmark.js
index d0f901e..5c963bd 100644
--- a/test/commonmark.js
+++ b/test/commonmark.js
@@ -33,3 +33,11 @@ describe('CommonMark', function () {
generate(p.join(__dirname, 'fixtures/commonmark/good.txt'), md);
});
+
+describe('CommonMark defaults', function () {
+ var md = require('../')('commonmark');
+
+ it('defaults to the safe html false options', function () {
+ assert.strictEqual(md.render(''), '
<script>alert();</script>
\n'); + }); +});