diff --git a/src/components/Markdown/YoutubeDirective.tsx b/src/components/Markdown/YoutubeDirective.tsx index 44e4446..bedfbe0 100644 --- a/src/components/Markdown/YoutubeDirective.tsx +++ b/src/components/Markdown/YoutubeDirective.tsx @@ -6,7 +6,7 @@ export const youtubeDirective: DirectiveConfig = { marker: '::', renderer(token) { //https://www.youtube.com/embed/ - //{#} + //::youtube{#} let vid: string = '' if (token.attrs && token.meta.name === 'youtube') { for (const attr in token.attrs) { @@ -15,15 +15,12 @@ export const youtubeDirective: DirectiveConfig = { attr.startsWith('#') ) { vid = attr.replace('#', '') - console.log(vid) } } } if (vid) { - return `` + return `` } return false