Skip to content

v1.0.10

Choose a tag to compare

@github-actions github-actions released this 22 Feb 23:23
· 89 commits to main since this release
3082692

🎉 v1.0.10 リリース

swift-markdown-view v1.0.10 がリリースされました。

📝 変更内容

修正

  • 列挙リスト内の太字レンダリング問題を修正
    • InlineRenderer に bodyFont パラメータを追加し、全テキスト run に明示的な font 属性を設定
    • SwiftUI の View レベル .font() が AttributedString の最初の run を上書きする問題を解消
    • ParagraphView, HeadingView, TableCellView から .typography() を除去し、Typography トークンの font を直接渡す方式に変更

変更

  • スナップショットテストを SwiftVisualTesting に移行
    • swift-snapshot-testing 直接依存を swift-visual-testing に置換
    • 全テストファイルを @SnapshotSuite / @ComponentSnapshot マクロベースに書き換え
    • テスト設定: iPhone 16、Light/Dark テーマ、日本語のみ
    • 非同期テスト(CodeBlock, Mermaid, Complex)は VisualTesting.assertComponentSnapshot() 直接 API を使用
    • 全スナップショットテストファイルに #if canImport(UIKit) ガードを追加(macOS ビルド対応)

📦 インストール

dependencies: [
    .package(url: "https://github.com/no-problem-dev/swift-markdown-view.git", .upToNextMajor(from: "1.0.10"))
]

🔗 リンク