Conversation
- Improved list rendering by optimizing the handling of unordered lists and their depth for better bullet symbol selection. - Enhanced `STMarkdownTableViewModel` to support visual grouping of table rows based on empty first columns, improving overall table presentation. - Updated related rendering components to ensure consistent behavior across list and table structures.
- Introduced a new method `circledNumberText(for:)` to convert integers from 1 to 20 into corresponding Unicode circled numbers (① ② … ⑳). - The method returns nil for out-of-range values or non-positive integers, enhancing the utility of citation handling in STMarkdown.
- Added new transformations to handle incomplete trailing emphasis and auto-close trailing inline code, improving the robustness of plain text rendering. - These enhancements ensure better handling of edge cases in Markdown syntax during rendering.
…nd rendering logic - Updated `renderBlockMath` to dynamically set the maximum width based on the main thread status, ensuring better fallback handling. - Refined `renderImage` to clarify thread requirements and prevent UIKit warnings or crashes by returning nil when not on the main thread. - Adjusted rendering logic to utilize the display list for improved image generation, enhancing overall rendering quality.
… environments - Added replacements for `align` and `align*` environments to map to `aligned`, ensuring compatibility with SwiftMath. - Improved overall rendering of mathematical expressions by handling more cases in the transformation logic.
…or improved indentation handling and performance - Updated STMarkdownMathNormalizer to preserve indentation for math block markers, enhancing output formatting. - Refined countUnescapedOccurrences in STMarkdownStreamingTransforms to utilize Unicode scalars for more efficient token searching, improving performance and accuracy.
…STMarkdown renderers
- Added logic to return specific spacing for adjacent table blocks in STMarkdownBlockLayoutCalculator and STMarkdownAttributedStringRenderer.
- Introduced methods in STMarkdownHighFidelityMathRenderer to strip CJK characters from \text{} commands, improving layout accuracy for mixed content.
- Modified headingInsets to reduce top and bottom insets from 20 to 18 for a more compact layout. - Updated block spacing return value in STMarkdownBlockLayoutCalculator to use style.blockSpacing instead of a fixed value of 18, enhancing flexibility in layout calculations.
- Adjusted the bottom constraint of the titleLabel to align with the bottom of the view, enhancing visual consistency. - Modified the bottom padding constant in ImageAndTextMetrics to zero, streamlining the layout calculations for better adaptability in various scenarios.
…View layout calculations - Introduced `itemLayoutAreaTopInset` and `itemLayoutAreaBottomInset` properties in STTabBarConfig to allow for customizable layout spacing. - Updated layout calculations in STTabBarItemView to utilize the new inset properties, improving the positioning of tab bar items.
…而 STBtn.super 会把 contentInsets = .zero 和 imagePadding = 0 清零覆盖掉。super 调用顺序反了。
…r improved math content handling - Added support for protecting markdown characters inside math spans in STMarkdownMathNormalizer to prevent misinterpretation of LaTeX content. - Introduced a new method in STMarkdownStreamingTransforms to mask inline math content, ensuring that characters like `_` and `*` are not treated as emphasis markers. - Updated the command map in STMarkdownDefaultMathRenderer for consistency in LaTeX command handling.
- Changed version references in README.md to reflect the new version 1.4.0 for CocoaPods and Swift Package Manager. - Updated the version in STBaseProject.podspec to 1.4.0, ensuring consistency across documentation and specifications.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
No description provided.