public class FlexmarkHtmlParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static DataKey<String> |
CODE_INDENT |
static DataKey<Integer> |
DEFINITION_MARKER_SPACES |
static DataKey<String> |
EOL_IN_TITLE_ATTRIBUTE |
static DataKey<Boolean> |
EXTRACT_AUTO_LINKS |
static DataKey<Boolean> |
LIST_CONTENT_INDENT |
static DataKey<Integer> |
MIN_SETEXT_HEADING_MARKER_LENGTH |
static DataKey<String> |
NBSP_TEXT |
static DataKey<Character> |
ORDERED_LIST_DELIMITER |
static DataKey<Boolean> |
OUTPUT_UNKNOWN_TAGS |
static DataKey<Boolean> |
SETEXT_HEADINGS |
static DataKey<Map<Object,CellAlignment>> |
TABLE_CELL_ALIGNMENT_MAP |
static DataKey<Boolean> |
TABLE_LEAD_TRAIL_PIPES |
static DataKey<Integer> |
TABLE_MIN_SEPARATOR_COLUMN_WIDTH |
static DataKey<Integer> |
TABLE_MIN_SEPARATOR_DASHES |
static DataKey<Boolean> |
TABLE_SPACE_AROUND_PIPES |
static DataKey<String> |
THEMATIC_BREAK |
static DataKey<Boolean> |
TYPOGRAPHIC_QUOTES |
static DataKey<Boolean> |
TYPOGRAPHIC_SMARTS |
static DataKey<Character> |
UNORDERED_LIST_DELIMITER |
static DataKey<Boolean> |
WRAP_AUTO_LINKS |
| Modifier and Type | Method and Description |
|---|---|
FlexmarkHtmlParser |
build()
Build parser with default options
|
FlexmarkHtmlParser |
build(DataHolder options)
Build parser
|
void |
dumpHtmlTree(FormattingAppendable out,
org.jsoup.nodes.Node node) |
HtmlParserOptions |
getOptions() |
boolean |
isTrace() |
void |
parse(FormattingAppendable out,
String html)
Parse HTML append to out
|
static String |
parse(String html)
Parse HTML with default options
|
static String |
parse(String html,
int maxBlankLines)
Parse HTML with default options and max trailing blank lines
|
static String |
parse(String html,
int maxBlankLines,
DataHolder options)
Parse HTML with given options and max trailing blank lines
|
void |
setTrace(boolean trace) |
public static final DataKey<Integer> MIN_SETEXT_HEADING_MARKER_LENGTH
public static final DataKey<Integer> TABLE_MIN_SEPARATOR_COLUMN_WIDTH
public static final DataKey<Map<Object,CellAlignment>> TABLE_CELL_ALIGNMENT_MAP
public HtmlParserOptions getOptions()
public boolean isTrace()
public void setTrace(boolean trace)
public void parse(FormattingAppendable out, String html)
out - formatting appendable to append the resulting Markdownhtml - html to be parsedpublic FlexmarkHtmlParser build()
public FlexmarkHtmlParser build(DataHolder options)
options - parser optionspublic void dumpHtmlTree(FormattingAppendable out, org.jsoup.nodes.Node node)
public static String parse(String html)
html - html to be parsedpublic static String parse(String html, int maxBlankLines)
html - html to be parsedpublic static String parse(String html, int maxBlankLines, DataHolder options)
html - html to be parsedmaxBlankLines - max trailing blank lines, -1 will suppress trailing EOLoptions - data holder for parsing optionsCopyright © 2017. All rights reserved.