From 687f3615dbc9072220397e0df8c993d5f7569151 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 29 Nov 2017 19:28:54 +0100 Subject: content className --- app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.js b/app.js index 37dc8ee..ffe71b5 100644 --- a/app.js +++ b/app.js @@ -63,6 +63,12 @@ function visitBlockquote(ast, vFile) { firstNode.children[0].value.startsWith('!attention') || firstNode.children[0].value.startsWith('!question') ) { node.type = 'div'; + node.data = { + hName: 'div', + hProperties: { + className: 'special-box-content' + } + }; var type = "" if( firstNode.children[0].value.indexOf("\n") > 0) { type = firstNode.children[0].value.substr(1, firstNode.children[0].value.indexOf("\n") ); -- cgit v1.2.3