Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dead link(s) found with markdown-it-video #4254

Open
sajt opened this issue Oct 7, 2024 · 1 comment
Open

Dead link(s) found with markdown-it-video #4254

sajt opened this issue Oct 7, 2024 · 1 comment

Comments

@sajt
Copy link

sajt commented Oct 7, 2024

I used @vrcd-community/markdown-it-video to embed videos.

The config file is looks like:

markdown: {
    config: (md) => {
      //console.log("md", md);
      md.use(markdownItVideo, {});
    },
  },

and in the markdown file:

@[youtube](XqZsoesa55w)]
It is working in the dev environment, but when I try to build I got the
(!) Found dead link ./XqZsoesa55w in file docs/music.md
If I use
@[youtube](http://youtu.be/XqZsoesa55w)]
it is working.

@brc-dd
Copy link
Member

brc-dd commented Oct 12, 2024

I'm not sure but looks like that plugin is not doing tokenization properly. Also, even if it did properly mark that as video instead of link it would've caused hydration mismatches in runtime because it generates invalid HTML (div inside p).

I'd say use some other plugin instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants