Skip to content

Commit a1106fe

Browse files
committed
build script
1 parent 3dabccc commit a1106fe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: dist/index.js

+11
Original file line numberDiff line numberDiff line change
@@ -25935,6 +25935,12 @@ function transformCallout(block) {
2593525935
]),
2593625936
];
2593725937

25938+
// Video
25939+
case '📽️':
25940+
return [
25941+
h('div', { dataType: 'video-link', dataTitle: plainTextTitle }, []),
25942+
];
25943+
2593825944
// Custom class div
2593925945
case '🏷️':
2594025946
return [h('div', { class: plainTextTitle }, [])];
@@ -26161,6 +26167,11 @@ function bookmark(block, parent) {
2616126167
parent.children.push(node);
2616226168
}
2616326169

26170+
// if the parent is an video link callout
26171+
// set the parent tag's href property
26172+
if (parent.properties.dataType === 'video-link')
26173+
parent.properties.href = block.bookmark.url;
26174+
2616426175
return null;
2616526176
}
2616626177

0 commit comments

Comments
 (0)