Correction: XEP-0393 actually allows preformatted spans

calls
Bohdan Horbeshko 2 years ago
parent 5514bc9d16
commit ae8152ad87

@ -166,7 +166,6 @@ func EntityToXEP0393(entity *client.TextEntity) (*Insertion, *Insertion) {
case client.TypeTextEntityTypeStrikethrough:
return markupBraces(entity, strikeRunesXEP0393, strikeRunesXEP0393)
case client.TypeTextEntityTypeCode:
// inline code is non-standard
return markupBraces(entity, codeRunes, codeRunes)
case client.TypeTextEntityTypePre:
return markupBraces(entity, preRuneStart, preRuneEnd)

Loading…
Cancel
Save