@studiocms/md
Introduction
Section titled “Introduction”This plugin enables MD Support within StudioCMS.
Installation
Section titled “Installation”-
Install the package using the following command:
Terminal window npm run studiocms add @studiocms/mdTerminal window pnpm run studiocms add @studiocms/mdTerminal window yarn run studiocms add @studiocms/md -
Your StudioCMS config should now include
@studiocms/md:studiocms.config.mjs import { defineStudioCMSConfig } from 'studiocms/config';import md from '@studiocms/md';export default defineStudioCMSConfig({plugins: [md(),],});
Options
Section titled “Options”studiocms Flavored Markdown
Section titled “studiocms Flavored Markdown”type StudioCMSMarkdown = { flavor: "studiocms"; autoLinkHeadings: boolean; callouts: false | "github" | "obsidian" | "vitepress"; discordSubtext: boolean; sanitize: { allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; };};astro Flavored Markdown
Section titled “astro Flavored Markdown”type AstroMarkdown = { flavor: "astro"; sanitize: { allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; };};