site: fix style tag

This commit is contained in:
Benjy Cui 2016-05-27 15:11:18 +08:00
parent 9cab6543ac
commit 23b8099449

View File

@ -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;
}