mdc library
Markdown Components parsing and semantic HTML rendering.
Classes
- HtmlElement
- One semantic HTML element.
- HtmlFragment
- A transparent group of sibling nodes.
- HtmlNode
- A node in a server-rendered semantic HTML tree.
- HtmlOutlet
- The insertion point for a matched descendant route document.
- HtmlText
- Escaped text content.
- MdcComponent
- A named component invocation.
- MdcComponentBinding
- A named component contributed to one MDC renderer.
- MdcDocument
- One parsed Markdown Components document.
- MdcElement
- A semantic Markdown element.
- MdcHtmlComponent
- A component available to the MDC HTML renderer.
- MdcHtmlComponentContext
- The input passed to an MdcHtmlComponentBuilder.
- MdcHtmlRenderer
- Converts an immutable MDC document into semantic HtmlNode values.
- MdcHtmlSlot
- One rendered named slot passed to an HTML component.
- MdcModule
- Installs MDC parsing and renderer-specific components into an application.
- MdcNode
- A node in an MDC document.
- MdcOutlineEntry
- One heading in an MDC document outline.
- MdcParser
- Parses Markdown Components source into an immutable, renderer-neutral AST.
- MdcSlot
- One named component slot.
- MdcText
- Plain text content.
- MdcUriPolicy
- Controls which links and images may produce navigable destinations.
Extensions
- MdcDocumentOutline on MdcDocument
- Heading utilities for an immutable MdcDocument.
Properties
-
mdcParserKey
→ ContextKey<
MdcParser> -
The application context key used to read the registered MdcParser.
final
Typedefs
- MdcHtmlComponentBuilder = HtmlNode Function(MdcHtmlComponentContext context)
- Builds the HTML representation of an MDC component.
- MdcTransform = MdcDocument Function(MdcDocument document)
- Transforms one parsed immutable MDC document.
Exceptions / Errors
- MdcHtmlRenderException
- A failure to convert an MDC node into safe semantic HTML.
- MdcUnknownComponentException
- Thrown when a renderer cannot resolve a component used by a document.