Laboratoria / mdlint

CLI tool to lint your markdown files using the markdownlint module
7 stars 6 forks source link

Accept video links embed with cs50 lab syntax #14

Open merunga opened 3 years ago

merunga commented 3 years ago

If we embed a video using the cs50 lab special syntax, it's still flagged as bare URL

lupomontero commented 3 years ago

@merunga, thanks for raising this issue :star:

Just to make sure I understand correctly, the use case would be having something like this in a markdown file, right?

{% video https://www.youtube.com/watch?v=oHg5SJYRHA0 %}

If that is the case, you could use a comment to turn off a given rule for a given line. Something like this.

<!-- markdownlint-disable-next-line no-bare-urls -->
{% video https://www.youtube.com/watch?v=oHg5SJYRHA0 %}

mdlint uses markdownlint to do the actual linting, so you should be able to use configuration as documented here.

I hope this helps.