mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
site: fix style tag
This commit is contained in:
parent
9cab6543ac
commit
23b8099449
@ -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…
Reference in New Issue
Block a user