aboutsummaryrefslogtreecommitdiff
path: root/tohtml.js
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-04-23 21:28:41 +0200
committerache <ache@ache.one>2018-04-23 21:28:54 +0200
commit0fd2dd74000bbf66bafb6fe95e4903b8bdd20884 (patch)
treeb74416ac98ab440124dc4bb6030d04e62d7d63d9 /tohtml.js
parentCan use script inside a md file (diff)
xo advises
Diffstat (limited to 'tohtml.js')
-rw-r--r--tohtml.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/tohtml.js b/tohtml.js
index b18c944..35173b4 100644
--- a/tohtml.js
+++ b/tohtml.js
@@ -1,6 +1,4 @@
-const path = 'md';
-
-const report = require('vfile-reporter');
+'use-strict';
/* TODO : Send the result of guide :
const guide = require('remark-preset-lint-markdown-style-guide');
@@ -22,7 +20,6 @@ const unified = require('unified');
const remark = require('remark-parse');
const customBlocks = require('remark-custom-blocks');
-
function toHTML(data, fnc) {
unified()
.use(remark)
@@ -36,23 +33,27 @@ function toHTML(data, fnc) {
.use(customBlocks, {
information: {
classes: 'special-box information',
- title: 'optional'
+ title: 'optional',
},
comment: {
classes: 'special-box comment',
- title: 'optional'
+ title: 'optional',
},
attention: {
classes: 'special-box attention',
- title: 'optional'
+ title: 'optional',
},
question: {
classes: 'special-box question',
- title: 'optional'
+ title: 'optional',
},
good: {
classes: 'special-box good',
},
+ secret: {
+ classes: 'special-box secret',
+ title: 'optional',
+ },
bad: {
classes: 'special-box bad',
}})