Skip to content

Commit 652fff6

Browse files
authored
Merge pull request #93 from dockersamples/92-fix-port-numbers-breaking-things
Don't create directives when the tag is numeric
2 parents fa0e6a6 + e993822 commit 652fff6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/interface/client/src/components/WorkshopPanel/markdown/reactDirective.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export function tabDirective() {
2525
(node) => {
2626
const data = node.data || (node.data = {});
2727

28+
if (!isNaN(Number(node.name))) {
29+
return;
30+
}
31+
32+
console.log("NODE", node);
33+
2834
// This is what's supposed to work. But "h" was not a function?
2935
// const { properties } = h(node.name, node.attributes);
3036

0 commit comments

Comments
 (0)