public void appendMarkdownInDiv(final HtmlBuilder htmlBuilder, final String rawMarkdown) {
        if (htmlBuilder != null && !NullSafe.isBlankString(rawMarkdown)) {
            final String markdownHtml = nativeConvertMarkdownToHtml(rawMarkdown);
            final SafeHtml markdownSafeHtml = SafeHtmlUtils.fromTrustedString(markdownHtml);
            final String cssClasses = getMarkdownContainerClasses();

            htmlBuilder.div(builder -> builder.append(markdownSafeHtml),
                    Attribute.className(cssClasses));
        }
    }
Converts the supplied markdown into html with appropriate syntax highlighting and
appends it to the htmlBuilder as a div with the appropriate classes for markdown rendering.
<p><b>NOTE:</b> if the markdown has come from user content then it cannot be trusted, so
you should contain the resulting html in a sandboxed iframe or add other layers of protection
from scripting in the markdown.</p>
stroom-core-client/src/main/java/stroom/entity/client/presenter/MarkdownConverter.java