furo-markdown

furo-markdown #

@furo/util v2.1.19
import '@furo/util/src/furo-markdown.js';
exports FuroMarkdown js
exports <furo-markdown> custom-element-definition
superclass LitElement

summary renders markdown data

furo-markdown Renders given md data with parseMarkdown or loads a md file with mdsrc="source.md"

Attributes and Properties #

mdsrc #

mdsrc String

source of the md

markdown #

markdown String

markdown string

markdownRendered #

default: undefined



unsafe #

unsafe Boolean

allow unsafe md. (writing html, components,…)

Methods #

fetchMd #

fetchMd(src `` ) ⟹ Promise&lt;string | never&gt;

`` fn-fetch-md

fetch markdown from a url or path

  • src

parseMarkdown #

parseMarkdown(markdown `` ) ⟹ void

`` fn-parse-markdown

Parse markdown string to html content

  • markdown