diff options
author | ache <ache@ache.one> | 2018-04-23 21:28:41 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2018-04-23 21:28:54 +0200 |
commit | 0fd2dd74000bbf66bafb6fe95e4903b8bdd20884 (patch) | |
tree | b74416ac98ab440124dc4bb6030d04e62d7d63d9 /tohtml.js | |
parent | Can use script inside a md file (diff) |
xo advises
Diffstat (limited to 'tohtml.js')
-rw-r--r-- | tohtml.js | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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', }}) |