Skip to main content
Module

x/netlify_cms_config/mod.ts>Markdown

Netlify CMS config generator
Latest
class Markdown
extends Field<Options>
Re-export
import { Markdown } from "https://deno.land/x/netlify_cms_config@v0.3.2/mod.ts";

Constructors

new
Markdown(label: string, config?: Options)

Properties

widget: string

Methods

buttons(value: Button[]): this

An array of strings representing the formatting buttons to display (all shown by default).

default(value: string): this

Accepts markdown content

editorComponents(value: Component[]): this

An array of strings representing the names of editor components to display (all shown by default). Netlify CMS includes image and code-block editor components by default, and custom components may be created and registered.

minimal(value?): this

Sets the widget height to minimum possible. False by default

modes(value: Mode[]): this

An array of strings representing the names of allowed editor modes. A toggle button appears in the toolbar when more than one mode is available.

sanitizePreview(value?): this

Sanitizes markdown preview to prevent XSS attacks - might alter the preview content.

Static Properties

defaults: Options