buildMappedText
Function: buildMappedText()
buildMappedText(
original,edits):MappedText
Defined in: packages/content-mapper/src/spans.ts:51
Apply edits and record the span map in one pass.
Parameters
original
string
authored file text
edits
Edit[]
this file's edits, any order
Returns
generated text plus its span map