diff --git a/site/component/utils.js b/site/component/utils.js index 4b9fbde9a4..ce6bc1c5f0 100644 --- a/site/component/utils.js +++ b/site/component/utils.js @@ -38,11 +38,11 @@ export function jsonmlToComponent(pathname, jsonml) { [(node) => getTagName(node) === 'video', (node, index) => , ], - [(node) => isElement(node) && getTagName(node) === 'a', (node, index) => { - if (getAttributes(node).class || - (getAttributes(node).href && getAttributes(node).href.indexOf('http') === 0)) { - return toReactComponent(node); - } + [(node) => isElement(node) && getTagName(node) === 'a' && !( + getAttributes(node).class || + (getAttributes(node).href && + getAttributes(node).href.indexOf('http') === 0) + ), (node, index) => { return {toReactComponent(getChildren(node)[0])}; }], [(node) => {