aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-11-29 19:28:54 +0100
committerache <ache@ache.one>2017-11-29 19:28:54 +0100
commit687f3615dbc9072220397e0df8c993d5f7569151 (patch)
tree406d122191f2f1766300eba861373d193908284a
parentFix name (diff)
content className
-rw-r--r--app.js6
1 files changed, 6 insertions, 0 deletions
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") );