Checks if we're at a closing fenced code fence. Uses fence_open so the closing line must start with the same whole match that opened the block
(e.g. " ```")
| chunk |
The text chunk |
| chunk_pos |
The position to check; may be advanced by 3 when indented closing line (fence_open has " " prefix and line starts with " ") |
| fence_type |
The type of fence we're looking for (FENCE_QUOTE_* or FENCE_TILD_*) |
| is_end_of_chunks |
If true, end of stream indicator |
|
-1 if need more data, 0 if not a match, >0 byte length consumed (through newline) if match |