Skip to content

Commit 8e8e36a

Browse files
committed
Revert "Fix parsing fenced code blocks: include EOL in closing marker"
This reverts commit 5c70fe6. Including EOL characters to fenced code blocks breaks many other tests. We have to adapt parsing PlantUML code blocks instead and let them no longer include the EOL characters at the end of the last code block line.
1 parent f65a088 commit 8e8e36a

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

flexmark/src/main/java/com/vladsch/flexmark/parser/core/FencedCodeBlockParser.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@ public BlockContinue tryContinue(ParserState state) {
7474

7575
if (foundFenceLength >= fenceLength) {
7676
// closing fence - we're at end of line, so we can finalize now
77-
BasedSequence lineWithEol = state.getLineWithEOL();
78-
if (lineWithEol.endsWithAnyEOL()) {
79-
BasedSequence trySequenceEol = lineWithEol.subSequence(nextNonSpace, lineWithEol.length());
80-
int eolLength = lineWithEol.eolEndLength();
81-
if (trySequenceEol.length() == foundFenceLength + eolLength) {
82-
block.setClosingMarker(trySequenceEol.subSequence(0, foundFenceLength + eolLength));
83-
return BlockContinue.finished();
84-
}
85-
}
86-
8777
block.setClosingMarker(trySequence.subSequence(0, foundFenceLength));
8878
return BlockContinue.finished();
8979
}

0 commit comments

Comments
 (0)