swiftlang/swift-markdown

Attributes in code listing causes code listing to end prematurely

amartini51 opened this issue · 1 comments

A code example like the following is mis-parsed starting with the first attribute:

struct NonsendableTemperatureReading {
    var measurement: Int
}

@available(*, unavailable)
extension NonsendableTemperatureReading: Sendable { }

The rendered output looks like the following:

image (1)

Filed #88 which is tracking the underlying bug. Closing this one.