Enhancement to support markdown rendering, including mermaid diagrams. Includes a fix for dom purify html.
Notes:
When rendering a literal:
The data type is checked to see if we have a w3Html data type or w3Markdown data type
If not, when autodetection settings are on, the text is parsed to see if it looks like html or markdown
For html rendering v-dompurify-html is used
For markdown rendering, marked is used via v-dompurify-html along with mermaid if needed
Autodetect settings in runtime env settings for HTML and Markdown
Defaults to no auto detection
Autodetection settings are loaded via use global config composable, then set in prez lib
Literal calls back to prez lib to determine if we need to treat the literal as html or markdown, this way these functions are usable by other systems that just use prez lib
Enhancement to support markdown rendering, including mermaid diagrams. Includes a fix for dom purify html.
Notes: