Skip to content

Commit feb4658

Browse files
authored
Update swift-markdown and fix test case (#708)
1 parent 4abae9a commit feb4658

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/SwiftDocCTests/Infrastructure/DocumentationContext/DocumentationContextTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ class DocumentationContextTests: XCTestCase {
177177
│ │ │ │ ├─ Argument text segments:
178178
│ │ │ │ | "source: figure1.png, alt: figure1 "
179179
│ │ │ ├─ Paragraph
180-
│ │ │ │ └─ Image source: "figure1" title: ""
180+
│ │ │ │ └─ Image source: "figure1"
181181
│ │ │ ├─ Paragraph
182-
│ │ │ │ └─ Image source: "images/figure1" title: ""
182+
│ │ │ │ └─ Image source: "images/figure1"
183183
│ │ │ └─ Paragraph
184184
│ │ │ └─ Text "Quis auctor elit sed vulputate mi sit amet."
185185
│ │ ├─ BlockDirective name: "Comment"
@@ -345,7 +345,7 @@ class DocumentationContextTests: XCTestCase {
345345
│ │ │ ├─ Paragraph
346346
│ │ │ │ └─ Text "Phasellus faucibus scelerisque eleifend donec pretium."
347347
│ │ │ ├─ Paragraph
348-
│ │ │ │ └─ Image source: "something.png" title: ""
348+
│ │ │ │ └─ Image source: "something.png"
349349
│ │ │ │ └─ Text "Diagram"
350350
│ │ │ ├─ CodeBlock language: swift
351351
│ │ │ │ let scene = ARSCNView()

Tests/SwiftDocCTests/Model/DocumentationMarkupTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class DocumentationMarkupTests: XCTestCase {
154154
Discussion content.
155155
"""
156156
let expected = """
157-
Image source: "image.jpg" title: ""
157+
Image source: "image.jpg"
158158
└─ Text "Image title"
159159
Text " Abstract."
160160
"""

Tests/SwiftDocCTests/Rendering/RenderContentCompilerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class RenderContentCompilerTests: XCTestCase {
4646
├─ Paragraph
4747
│ └─ Link destination: "doc:article2"
4848
│ ├─ Text "Custom Image Content "
49-
│ └─ Image source: "https://example.com/test.png" title: ""
49+
│ └─ Image source: "https://example.com/test.png"
5050
│ └─ Text "random image"
5151
├─ Paragraph
5252
│ └─ Link destination: "doc:UNRESOVLED"

0 commit comments

Comments
 (0)