Skip to content

SiMarkdownRendererComponent documentation

selector
si-markdown-renderer

Component to display markdown text, uses the getMarkdownRenderer function internally, relies on theme .markdown-renderer styles.

Input Properties

NameTypeDefaultDescription
text
string''The markdown text to transform and display

Types Documentation

(sanitizer: DomSanitizer) => (text: string) => Node
Function
Returns a markdown renderer function which_ - Transforms markdown text into formatted HTML. - Returns a DOM node containing the formatted content.

Warning: The returned Node is inserted without additional sanitization. Input content is sanitized before processing.

@param: Angular DomSanitizer instance

Returns A function taking the markdown text to transform and returning a DOM div element containing the formatted HTML
Parameters
sanitizer: DomSanitizer


Except where otherwise noted, content on this site is licensed under MIT License.