← Về thư mục
frontend/src/features/messages/cut.ts
- MdFence · type · L10-L10 — type MdFence = { char: string; length: number };
- MdCutState · type · L12-L20 — type MdCutState = { / Start of the first unprocessed (complete or incomplete) line. */ offset: number; / Last sealed boundary (
0 if nothing is stable yet). / stable: number; openFence: MdFence | null; / Length of text the last time this state was produced. / textLen: number; };
- emptyMdCutState · function · L24-L26 — function emptyMdCutState(): MdCutState
- fenceCloses · function · L28-L33 — function fenceCloses(line: string, open: MdFence): boolean
- resumeFrom · function · L35-L52 — function resumeFrom(text: string, prev: MdCutState | null | undefined): MdCutState
- mdStableCut · function · L58-L94 — function mdStableCut( text: string, prev?: MdCutState | null, ): MdCutState
- _mdStableCut · function · L100-L102 — function _mdStableCut(text: string, prev?: MdCutState | null): number
- shouldAdvanceSealed · function · L105-L107 — function shouldAdvanceSealed(cut: number, stableAt: number): boolean