parseDetailed
parseDetailed(
input,format,options?):ParseResult
Defined in: src/conversion.ts:125 (opens in a new tab)
parse, with the position of each token in the input.
Positions are offsets in UTF-16 code units, the unit of String.length,
slice() and editor selections, in the input exactly as supplied: the
reader normalizes the text, but the spans are mapped back to the caller’s
string.
Parameters
Section titled “Parameters”string
format
Section titled “format”options?
Section titled “options?”ConversionOptions | PreparedOptions = {}
Returns
Section titled “Returns”Throws
Section titled “Throws”If input is not a string.
Throws
Section titled “Throws”If format is not supported or an option is invalid.