Closed p10trk closed 2 years ago
I just discovered the option IGNORE_TABLE_HEADING_AFTER_ROWS
that controls this behavior.
The problem went away after initializing the converter like this:
DataHolder options = new MutableDataSet()
.set(IGNORE_TABLE_HEADING_AFTER_ROWS, false)
.toImmutable();
FlexmarkHtmlConverter.builder(options);
When converting a HTML table with a horizontal header to Markdown, the row containing the header is omitted.
Please provide as much information about where the but is located or what you were using:
Using flexmark-java version 0.64.0. From pom.xml:
Parser
HtmlRenderer
Formatter
FlexmarkHtmlParser
DocxRenderer
PdfConverterExtension
FlexmarkHtmlConverter
To Reproduce
Run the following Java test:
Expected behavior
The resulting Markdown should be as follows:
Resulting Output It is best to provide one of the following (in decreasing order of value):
The actual Markdown is: