Update parse-content.mjs

This commit is contained in:
jasongao97 2022-10-03 19:44:00 -04:00
parent 8c3080fab8
commit 08a1c5967d

View file

@ -12,7 +12,7 @@ export function parseContent(html) {
const replaceMedia = () => (tree) => {
visit(tree, { tagName: 'div' }, (node) => {
if (
node.properties.dataType === 'example' &&
node.properties.dataType === 'embed' &&
node.properties.dataExamplePath
) {
node.tagName = 'embed-example';