@stedefast/plugin-embeds
v0.2.2
Published
oEmbed / rich link embed plugin for Stedefast — transforms bare URLs into YouTube, Twitter, GitHub Gist, and more at build time
Maintainers
Readme
@stedefast/plugin-embeds
Build-time oEmbed plugin for Stedefast — transforms bare URLs in Markdown into rich embeds (YouTube, Vimeo, Twitter/X, GitHub Gist, CodePen, Spotify) at build time. No client-side JavaScript required.
Installation
pnpm add @stedefast/plugin-embedsUsage
// stedefast.config.ts
import { defineConfig } from "@stedefast/core";
import { EmbedsPlugin } from "@stedefast/plugin-embeds";
export default defineConfig({
plugins: [
EmbedsPlugin({ onError: "link" }),
],
});Place a URL on its own line in Markdown:
https://www.youtube.com/watch?v=dQw4w9WgXcQDocumentation
Full docs at stedefast.dev/docs/plugins/embeds.
License
MIT
