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 0b2ea11 commit 7889a15Copy full SHA for 7889a15
Sources/MarkdownPluginSwift/Signature.Expanded (ext).swift
@@ -99,7 +99,18 @@ extension Signature.Expanded
99
100
$0[color]
101
{
102
- if let referent:Scalar = symbols.removeValue(forKey: range.lowerBound)
+ let offset:Int
103
+ if case .attribute = color,
104
+ case 0x40 = utf8[range.lowerBound] // '@'
105
+ {
106
+ offset = range.lowerBound + 1
107
+ }
108
+ else
109
110
+ offset = range.lowerBound
111
112
+
113
+ if let referent:Scalar = symbols.removeValue(forKey: offset)
114
115
$0[.href] =
116
0 commit comments