Interface ReadHtmlOptions

How readHtml reads a page.

interface ReadHtmlOptions {
    maxCharacters?: number;
    maxTableRows?: number;
    maxTableColumns?: number;
}

Properties

maxCharacters?: number

The most characters of Markdown. The text is cut at the last whole block that fits; past it, a paragraph keeps its words up to a space that fits, a code block the lines that fit with its closing fence, a list the lines that fit, a table its header and the rows that fit, and a quote the blocks that fit with the next one cut by its own rule, however deep the quote sits, each line's quote marks counted. 0, any positive number or Infinity; a bound below 0, NaN or no number at all is refused with a RangeError.

Default

Infinity
maxTableRows?: number

The most rows a table keeps, its header row among them, and the most rows of cells a table laid out for the page keeps; a row that writes nothing is not counted. Bounded as maxCharacters is.

Default

500
maxTableColumns?: number

The most columns a table keeps, a table laid out for the page among them. Bounded as maxCharacters is.

Default

30