@@ -219,7 +219,9 @@ export class RecursiveMarkdownSplitter {
219219 * Active source becomes the first URL and applies from the end of the block
220220 * until the start of the next Sources block (or end of document).
221221 */
222- private parseSourceRanges ( markdown : string ) : Array < { start : number ; end : number ; url : string } > {
222+ private parseSourceRanges (
223+ markdown : string ,
224+ ) : Array < { start : number ; end : number ; url : string } > {
223225 const lines = markdown . split ( '\n' ) ;
224226 const ranges : Array < { start : number ; end : number ; url : string } > = [ ] ;
225227
@@ -247,7 +249,11 @@ export class RecursiveMarkdownSplitter {
247249 } ;
248250
249251 // Locate all source blocks (start/end + first URL)
250- const blocks : Array < { blockStartLine : number ; blockEndLine : number ; firstUrl ?: string } > = [ ] ;
252+ const blocks : Array < {
253+ blockStartLine : number ;
254+ blockEndLine : number ;
255+ firstUrl ?: string ;
256+ } > = [ ] ;
251257 for ( let i = 0 ; i < lines . length ; i ++ ) {
252258 if ( ! isDashLine ( lines [ i ] ! ) ) continue ;
253259 // Scan ahead for Sources: header within the dashed block
@@ -789,7 +795,8 @@ export class RecursiveMarkdownSplitter {
789795 if ( i > 0 && this . options . overlap > 0 ) {
790796 const prevSegment = segments [ i - 1 ] ! ;
791797 const desired = Math . max (
792- prevSegment . end - Math . min ( this . options . overlap , prevSegment . end - prevSegment . start ) ,
798+ prevSegment . end -
799+ Math . min ( this . options . overlap , prevSegment . end - prevSegment . start ) ,
793800 prevSegment . start ,
794801 ) ;
795802 chunkStartAbs = desired ;
0 commit comments