You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhanced whitespace normalization in translated content for cleaner, more consistent output formatting.
Improved LaTeX rendering logic with better handling of inline and block content elements in EPUB translations.
Refined overall rendering consistency for translated documents.
Walkthrough
The pull request modifies the XML interrupter module to refactor LaTeX rendering logic. Two new imports are added: normalize_whitespace from utils and is_inline_element from xml. The rendering logic for LaTeX is updated to normalize whitespace in the non-None branch and replace an explicit check for DISPLAY_ATTRIBUTE == "inline" with a generalized is_inline_element() function call. This function determines whether to use single dollar signs for inline elements or double dollar signs for block elements as LaTeX delimiters. Existing behavior for the None case is preserved.
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
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.
No description provided.