File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,16 +48,17 @@ import org.commonmark.parser.Parser;
4848
4949Parser parser = Parser . builder(). build();
5050Node document = parser. parse(" This is *Sparta*" );
51- HtmlRenderer renderer = HtmlRenderer . builder(). escapeHtml( true ) . build();
51+ HtmlRenderer renderer = HtmlRenderer . builder(). build();
5252renderer. render(document); // "<p>This is <em>Sparta</em></p>\n"
5353```
5454
55- This uses the parser and renderer with default options, except for escaping raw
56- HTML tags and blocks. For all the available options, see other methods on the
57- builder objects.
55+ This uses the parser and renderer with default options. Both builders have
56+ methods for configuring their behavior, e.g. calling ` escapeHtml(true) ` on
57+ ` HtmlRenderer ` will escape raw HTML tags and blocks. For all available
58+ options, see methods on the builders.
5859
59- Note that this library doesn't try to sanitize HTML; that is the responsibility
60- of the caller.
60+ Note that this library doesn't try to sanitize the resulting HTML; that is
61+ the responsibility of the caller.
6162
6263#### Use a visitor to process parsed nodes
6364
You can’t perform that action at this time.
0 commit comments