Builder.enabledBlockTypes

Describe the list of markdown features the parser will recognize and parse. <p> By default, CommonMark will recognize and parse the following set of "block" elements: <ul> <li>{@link Heading} ({@code #}) <li>{@link HtmlBlock} ({@code <html></html>}) <li>{@link ThematicBreak} (Horizontal Rule) ({@code ---}) <li>{@link FencedCodeBlock} ({@code ``}) <li>{@link IndentedCodeBlock} <li>{@link BlockQuote} ({@code >}) <li>{@link ListBlock} (Ordered / Unordered List) ({@code 1. / *}) </ul> <p> To parse only a subset of the features listed above, pass a list of each feature's associated {@link Block} class. <p> E.g., to only parse headings and lists: <pre> {@code Parser.builder().enabledBlockTypes(new HashSet<>(Arrays.asList(Heading.class, ListBlock.class))); } </pre>

@param enabledBlockTypes A list of block nodes the parser will parse. If this list is empty, the parser will not recognize any CommonMark core features. @return {@code this}

class Builder
enabledBlockTypes
(
Set!TypeInfo_Class enabledBlockTypes
)

Meta