handle_fence_result


Description:

public bool handle_fence_result (int fence_result, ref int chunk_pos, string chunk)

Handles fenced-code closing fence result. Caller calls peekFencedEnd() then this. Updates chunk_pos when consuming input.

Parameters:

fence_result

Result from peekFencedEnd (-1 need more, 0 not fence, >0 bytes consumed)

chunk_pos

Updated to position after consumed input

chunk

The current chunk

Returns:

true (need more characters or flushed text; parser.leftover_chunk may be set), false to keep processing the rest of the chunk