Repository navigation
Conversation
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.
This addresses the encoding part of #662.
The shared renderer returned on a UTF-8 decoding error and silently dropped the rest of the text node in CommonMark, LaTeX, and man output. Emit U+FFFD for the undecodable byte and resume rendering at the next byte. This keeps the complete readable suffix even when parsing with the default options.
The API regression passes legacy-encoded text through all three renderers. All three assertions failed before the fix. The approved offline runner passed all 576 API assertions in a shared Debug build and a static UBSan build. The Python-based specification suite could not run because Python was unavailable in the native build image.
This change was prepared with AI assistance.