(state: ParsingState)
| 255 | } |
| 256 | |
| 257 | private static consumeBlockLink(state: ParsingState): string | undefined { |
| 258 | const match = state.line.match(this.BLOCK_LINK_PATTERN); |
| 259 | if (!match?.[1]) { |
| 260 | return undefined; |
| 261 | } |
| 262 | |
| 263 | state.line = state.line.replace(this.BLOCK_LINK_PATTERN, "").trim(); |
| 264 | return match[1]; |
| 265 | } |
| 266 | |
| 267 | private static consumeTrailingTagOrContext(state: ParsingState): boolean { |
| 268 | if (!this.TRAILING_TAG_OR_CONTEXT_PATTERN.test(state.line)) { |