(line: string)
| 1 | import { CodeBlockBehavior, ContextData, ContextType } from './type'; |
| 2 | |
| 3 | function parseFenceLength(line: string): number { |
| 4 | const trimmed = line.trimStart(); |
| 5 | const match = trimmed.match(/^(`{3,})/); |
| 6 | if (!match) return 0; |
| 7 | return match[1].length; |
| 8 | } |
| 9 | |
| 10 | function isClosingFence(line: string, minLen: number): boolean { |
| 11 | const trimmed = line.trimStart(); |
no outgoing calls
no test coverage detected