mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
site: fix
This commit is contained in:
parent
2fc97f4ada
commit
7340871aaf
@ -39,7 +39,8 @@ export function jsonmlToComponent(pathname, jsonml) {
|
||||
<VideoPlayer video={getAttributes(node)} key={index} />
|
||||
],
|
||||
[(node) => {
|
||||
return getTagName(node) === 'p' &&
|
||||
return isElement(node) &&
|
||||
getTagName(node) === 'p' &&
|
||||
getTagName(getChildren(node)[0]) === 'img' &&
|
||||
/preview-img/gi.test(getAttributes(getChildren(node)[0]).class);
|
||||
}, (node, index) => {
|
||||
|
Loading…
Reference in New Issue
Block a user