Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Sources/MarkdownUI/Theme/Theme+Basic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ extension Theme {
}
.paragraph { configuration in
configuration.label
.fixedSize(horizontal: false, vertical: true)
.relativeLineSpacing(.em(0.15))
.markdownMargin(top: .zero, bottom: .em(1))
}
Expand All @@ -94,6 +95,7 @@ extension Theme {
}
.table { configuration in
configuration.label
.fixedSize(horizontal: false, vertical: true)
.markdownMargin(top: .zero, bottom: .em(1))
}
.tableCell { configuration in
Expand All @@ -103,6 +105,7 @@ extension Theme {
FontWeight(.semibold)
}
}
.fixedSize(horizontal: false, vertical: true)
.relativeLineSpacing(.em(0.15))
.relativePadding(.horizontal, length: .em(0.72))
.relativePadding(.vertical, length: .em(0.35))
Expand Down
3 changes: 3 additions & 0 deletions Sources/MarkdownUI/Theme/Theme+DocC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ extension Theme {
}
.paragraph { configuration in
configuration.label
.fixedSize(horizontal: false, vertical: true)
.relativeLineSpacing(.em(0.235295))
.markdownMargin(top: .em(0.8), bottom: .zero)
}
Expand Down Expand Up @@ -123,6 +124,7 @@ extension Theme {
}
.table { configuration in
configuration.label
.fixedSize(horizontal: false, vertical: true)
.markdownTableBorderStyle(.init(.horizontalBorders, color: .grid))
.markdownMargin(top: .em(1.6), bottom: .zero)
}
Expand All @@ -133,6 +135,7 @@ extension Theme {
FontWeight(.semibold)
}
}
.fixedSize(horizontal: false, vertical: true)
.relativeLineSpacing(.em(0.235295))
.relativePadding(length: .rem(0.58824))
}
Expand Down
3 changes: 3 additions & 0 deletions Sources/MarkdownUI/Theme/Theme+GitHub.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ extension Theme {
}
.paragraph { configuration in
configuration.label
.fixedSize(horizontal: false, vertical: true)
.relativeLineSpacing(.em(0.25))
.markdownMargin(top: 0, bottom: 16)
}
Expand Down Expand Up @@ -136,6 +137,7 @@ extension Theme {
}
.table { configuration in
configuration.label
.fixedSize(horizontal: false, vertical: true)
.markdownTableBorderStyle(.init(color: .border))
.markdownTableBackgroundStyle(
.alternatingRows(Color.background, Color.secondaryBackground)
Expand All @@ -150,6 +152,7 @@ extension Theme {
}
BackgroundColor(nil)
}
.fixedSize(horizontal: false, vertical: true)
.padding(.vertical, 6)
.padding(.horizontal, 13)
.relativeLineSpacing(.em(0.25))
Expand Down
1 change: 0 additions & 1 deletion Sources/MarkdownUI/Views/Inlines/InlineText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ struct InlineText: View {
.task(id: self.inlines) {
self.inlineImages = (try? await self.loadInlineImages()) ?? [:]
}
.fixedSize(horizontal: false, vertical: true)
}

private func loadInlineImages() async throws -> [String: Image] {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Tests/MarkdownUITests/__Snapshots__/ThemeDocCTests/testTable.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.