mirror of
https://github.com/nature-of-code/noc-book-2
synced 2024-09-29 05:36:56 +02:00
Update parse-content.mjs
This commit is contained in:
parent
8c3080fab8
commit
08a1c5967d
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue