We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 371031f commit 80bba69Copy full SHA for 80bba69
Sources/MarkdownSemantics/AST/Media/Markdown.BlockCodeFragment.swift
@@ -123,6 +123,15 @@ extension Markdown.BlockCodeFragment
123
124
if let slice:String = self.slice
125
{
126
+ // If this is the first slice, we should also inline the caption.
127
+ if case slice? = snippet.slices.keys.first
128
+ {
129
+ for block:Markdown.BlockElement in snippet.caption
130
131
+ yield(block)
132
+ }
133
134
+
135
if let slice:Markdown.SnippetSlice = snippet.slices[slice]
136
137
yield(Markdown.BlockCodeLiteral.init(bytecode: slice.code))
0 commit comments