markdownHtml property

MarkdownHtml get markdownHtml

The HTML table the parser reads: the built-in tags with htmlTags applied, or none at all when html is off.

Implementation

MarkdownHtml get markdownHtml {
  if (!html) return MarkdownHtml.none;
  final tags = htmlTags;
  if (tags == null || tags.isEmpty) return MarkdownHtml.defaults;
  return _htmlTables[tags] ??= MarkdownHtml.defaults.extend({
    for (final entry in tags.entries) entry.key: entry.value?.syntax,
  });
}