From b30abf5bd104ba1716eb189d74c19314fe152172 Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 21 Sep 2023 17:33:35 +0800 Subject: [PATCH] Update swift-markdown and fix test case --- Package.resolved | 2 +- .../DocumentationContext/DocumentationContextTests.swift | 6 +++--- Tests/SwiftDocCTests/Model/DocumentationMarkupTests.swift | 2 +- .../Rendering/RenderContentCompilerTests.swift | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Package.resolved b/Package.resolved index d9de795b36..64c9eeb94e 100644 --- a/Package.resolved +++ b/Package.resolved @@ -78,7 +78,7 @@ "location" : "https://github.com/apple/swift-markdown.git", "state" : { "branch" : "main", - "revision" : "3d4b36cff09f785adf5efb190d458a3d44e6df87" + "revision" : "e5ab90941a8415304b4a4e403253bd59fef00b5a" } }, { diff --git a/Tests/SwiftDocCTests/Infrastructure/DocumentationContext/DocumentationContextTests.swift b/Tests/SwiftDocCTests/Infrastructure/DocumentationContext/DocumentationContextTests.swift index 40b1e96af2..241e7fa897 100644 --- a/Tests/SwiftDocCTests/Infrastructure/DocumentationContext/DocumentationContextTests.swift +++ b/Tests/SwiftDocCTests/Infrastructure/DocumentationContext/DocumentationContextTests.swift @@ -177,9 +177,9 @@ class DocumentationContextTests: XCTestCase { │ │ │ │ ├─ Argument text segments: │ │ │ │ | "source: figure1.png, alt: figure1 " │ │ │ ├─ Paragraph -│ │ │ │ └─ Image source: "figure1" title: "" +│ │ │ │ └─ Image source: "figure1" │ │ │ ├─ Paragraph -│ │ │ │ └─ Image source: "images/figure1" title: "" +│ │ │ │ └─ Image source: "images/figure1" │ │ │ └─ Paragraph │ │ │ └─ Text "Quis auctor elit sed vulputate mi sit amet." │ │ ├─ BlockDirective name: "Comment" @@ -345,7 +345,7 @@ class DocumentationContextTests: XCTestCase { │ │ │ ├─ Paragraph │ │ │ │ └─ Text "Phasellus faucibus scelerisque eleifend donec pretium." │ │ │ ├─ Paragraph -│ │ │ │ └─ Image source: "something.png" title: "" +│ │ │ │ └─ Image source: "something.png" │ │ │ │ └─ Text "Diagram" │ │ │ ├─ CodeBlock language: swift │ │ │ │ let scene = ARSCNView() diff --git a/Tests/SwiftDocCTests/Model/DocumentationMarkupTests.swift b/Tests/SwiftDocCTests/Model/DocumentationMarkupTests.swift index b315bc1816..5df556e0de 100644 --- a/Tests/SwiftDocCTests/Model/DocumentationMarkupTests.swift +++ b/Tests/SwiftDocCTests/Model/DocumentationMarkupTests.swift @@ -154,7 +154,7 @@ class DocumentationMarkupTests: XCTestCase { Discussion content. """ let expected = """ - Image source: "image.jpg" title: "" + Image source: "image.jpg" └─ Text "Image title" Text " Abstract." """ diff --git a/Tests/SwiftDocCTests/Rendering/RenderContentCompilerTests.swift b/Tests/SwiftDocCTests/Rendering/RenderContentCompilerTests.swift index e4bdd2e6a2..1e22135663 100644 --- a/Tests/SwiftDocCTests/Rendering/RenderContentCompilerTests.swift +++ b/Tests/SwiftDocCTests/Rendering/RenderContentCompilerTests.swift @@ -46,7 +46,7 @@ class RenderContentCompilerTests: XCTestCase { ├─ Paragraph │ └─ Link destination: "doc:article2" │ ├─ Text "Custom Image Content " - │ └─ Image source: "https://example.com/test.png" title: "" + │ └─ Image source: "https://example.com/test.png" │ └─ Text "random image" ├─ Paragraph │ └─ Link destination: "doc:UNRESOVLED"