From 0fd2dd74000bbf66bafb6fe95e4903b8bdd20884 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 23 Apr 2018 21:28:41 +0200 Subject: xo advises --- tohtml.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'tohtml.js') 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', }}) -- cgit v1.2.3