Skip to content

1.4.0 dev#8

Merged
i-stack merged 16 commits into
mainfrom
1.4.0_dev
May 30, 2026
Merged

1.4.0 dev#8
i-stack merged 16 commits into
mainfrom
1.4.0_dev

Conversation

@i-stack
Copy link
Copy Markdown
Owner

@i-stack i-stack commented May 30, 2026

No description provided.

i-stack added 16 commits May 25, 2026 18:55
- 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.
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@i-stack i-stack merged commit 487d4a6 into main May 30, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant