Embeds & Diagrams Plugins
Embed external content (YouTube, videos, Twitter, CodePen, CodeSandbox, GitHub Gists) and create diagrams (flowcharts, sequences, Gantt charts) with Mermaid.
Usage
embedVideoPlugin() — YouTube
Embed a YouTube video with the <EmbedVideo> JSX component. Set type="youtube" and provide the full video URL via src.
embedVideoPlugin() — File Video
Embed a self-hosted or remote video file with type="file". Supports local paths and remote URLs.
embedOthersPlugin() — GitHub Gist
Embed a GitHub Gist using <Embed type="github"> with the full gist URL. Add an optional label attribute for a custom title.
embedOthersPlugin() — Twitter
Embed a tweet using <Embed type="twitter"> with the full tweet URL.
embedOthersPlugin() — CodePen
Embed a CodePen pen using <Embed type="codepen"> with the full pen URL.
embedOthersPlugin() — CodeSandbox
Embed a CodeSandbox project using <Embed type="codesandbox"> with the sandbox URL.
mermaidPlugin()
Render Mermaid diagrams from fenced code blocks with the mermaid language tag. Supports flowcharts, sequence diagrams, Gantt charts, class diagrams, state diagrams, ER diagrams, and user journey maps. Requires the Mermaid library loaded on the page.
Flowchart
Sequence Diagram
Gantt Chart
© 2026 SynclineMDX Editor. All rights reserved.