Package org.apache.juneau.console.views.markdown
package org.apache.juneau.console.views.markdown
An optional markdown-to-HTML rendering story for the views/console toolkit.
The framework itself renders data tables (juneau-console-views) and chrome
(juneau-console); neither has any concept of a rendered document. This optional
module fills that gap with a single, library-neutral extension point —
MarkdownRenderer — plus a shipped default
(CommonmarkMarkdownRenderer) that wraps commonmark-java with
the GFM tables extension enabled. Because it is a separate module, consumers that do not need markdown pay
nothing for it.
The rendered HTML is meant to be dropped inside a Tab/Subtab panel's content property is a deferred
follow-on integration point, not part of this module.
See Also:
- Since:
- 10.0.0
-
ClassDescriptionThe default
MarkdownRendererimplementation: a thin wrapper around commonmark-java with the GFM tables extension enabled, HTML-escaped raw markup, and URL allowlisting on<a href>/<img src>.A pluggable markdown-to-HTML renderer: hand it a markdown string, get back an HTML fragment.