Demo: YouTube links¶
This page shows the link prefix extension in action with YouTube examples. The links below use the youtube: prefix; when the docs are built, they are expanded to full URLs.
Watch URL (youtube:)¶
Use the youtube: prefix for the standard watch URL format:
Same link with an optional title:
In a paragraph¶
You can embed prefixed links in prose: check out this classic or this one for more. The extension rewrites them before Markdown parses the document, so the output is a normal <a href="..."> link.
Source vs output¶
In your Markdown you write:
After the extension runs, the link destination becomes https://www.youtube.com/watch?v=dQw4w9WgXcQ, and the rest of the pipeline sees a standard Markdown link.