Browse Source

site: fix style tag

pull/1912/head
Benjy Cui 9 years ago
parent
commit
23b8099449
  1. 3
      site/bisheng-plugin-antd/lib/process-demo.js

3
site/bisheng-plugin-antd/lib/process-demo.js

@ -71,7 +71,8 @@ module.exports = (markdownData) => {
if (isStyleTag(styleNode)) {
markdownData.style = JsonML.getChildren(styleNode)[0];
} else if (styleNode) {
markdownData.style = getCode(styleNode);
const styleTag = contentChildren.find(isStyleTag);
markdownData.style = getCode(styleNode) + (styleTag ? JsonML.getChildren(styleTag)[0] : '');
markdownData.highlightedStyle = JsonML.getAttributes(styleNode).highlighted;
}

Loading…
Cancel
Save