Check if closing marker exists before newline. If markerValue is provided, also check that the token value matches.
Optional
Check if closing marker exists before newline. If markerValue is provided, also check that the token value matches.