Drop backslash escapes that Markdown does not need - #441
Merged
Conversation
Pages converted from APT with an older doxia-converter carry an escape in front of punctuation that is not markup where it stands: a hyphen or underscore inside a word, a parenthesis, a full stop after a letter. The backslash renders as nothing and only makes the source harder to read and to edit. Only positions where the bare character can never be markup are touched. A full stop after a digit keeps its escape, so an ordered list marker cannot appear by accident, and angle brackets keep theirs, since <escapeString> would otherwise be read as a tag. Code spans, fenced blocks and link destinations are left alone.
slachiewicz
marked this pull request as draft
August 9, 2026 10:34
Removing the backslashes shortened three cells, so the column padding no longer matched what the Spotless flexmark step produces and spotless:check failed the build. Reflowed with spotless:apply; only padding changed. Generated-by: Claude Opus 5 (1M context)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pages converted from APT with an older doxia-converter carry an escape in front of
punctuation that is not markup where it stands: a hyphen or underscore inside a word,
a parenthesis, a full stop after a letter. The backslash renders as nothing and only
makes the source harder to read and to edit.
Only positions where the bare character can never be markup are touched. A full stop
after a digit keeps its escape, so an ordered list marker cannot appear by accident,
and angle brackets keep theirs, since would otherwise be read as a tag.
Code spans, fenced blocks and link destinations are left alone.
Drafted with Claude — please verify