Overview
This page documents the nested types that control layout, spacing, and visual styling for specific markdown elements including tables and images.Spacings
Controls spacing and padding throughout the markdown view.Declaration
Properties
The final spacing applied after the last element in the markdown content.
General spacing between markdown elements (paragraphs, headings, etc.).
Spacing between list items.
Spacing for table cells.
Example
Sizes
Controls the size of visual elements.Declaration
Properties
The diameter of bullet points in unordered lists.
Example
Table
Controls the styling of markdown tables.Declaration
Properties
Border and Shape
The corner radius applied to table borders.
The width of table borders.
The color of table borders.Default (iOS/visionOS):
UIColor.separatorDefault (macOS): NSColor.separatorColorCell Colors
Background color for table header cells.Default (iOS/visionOS):
UIColor.systemGray6Default (macOS): NSColor.windowBackgroundColorBackground color for standard table cells.Default:
UIColor.clear / NSColor.clearBackground color for alternating table rows (striped rows).Default:
UIColor.systemGray.withAlphaComponent(0.03) / NSColor.systemGray.withAlphaComponent(0.03)Creates a subtle stripe effect for better readability.Example
Image
Controls the styling of images in markdown content.Declaration
Properties
The corner radius applied to images.
The maximum width of images as a fraction of the available width.
1.0= 100% of available width0.5= 50% of available width
The color displayed while images are loading.Default (iOS/visionOS):
UIColor.systemGray5Default (macOS): NSColor.windowBackgroundColorExample
Platform Types
All color properties use platform-specific types:- iOS/visionOS:
UIColorfrom UIKit - macOS:
NSColorfrom AppKit
CGFloat, which is available on all platforms.