Skip to main content
Module

x/lume/deps/markdown_it.ts>MarkdownItOptions

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface MarkdownItOptions
import { type MarkdownItOptions } from "https://deno.land/x/lume@v2.1.3/deps/markdown_it.ts";

Properties

optional
html: boolean

Set true to enable HTML tags in source

optional
xhtmlOut: boolean

Use / to close single tags (<br />). This is only for full CommonMark compatibility.

optional
breaks: boolean

Convert \n in paragraphs into <br>

optional
langPrefix: string

CSS language prefix for fenced blocks. Can be useful for external highlighters.

optional
linkify: boolean

Autoconvert URL-like text to links

optional
typographer: boolean

Enable some language-neutral replacement + quotes beautification

optional
quotes: string | string[]

Double + single quotes replacement pairs, when typographer enabled, and smartquotes on. Could be either a String or an Array. For example, you can use «»„“ for Russian, „“‚‘ for German, and ['«\xA0', '\xA0»', '‹\xA0', '\xA0›'] for French (including nbsp).

optional
highlight: (str: string, lang: string) => string | null

Highlighter function. Should return escaped HTML, or '' if the source string is not changed and should be escaped externally. If result starts with <pre... internal wrapper is skipped.