Correction: XEP-0393 actually allows preformatted spans

This commit is contained in:
Bohdan Horbeshko 2022-03-11 16:57:52 -05:00
parent 5514bc9d16
commit ae8152ad87

View file

@ -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)