Correction: XEP-0393 actually allows preformatted spans
This commit is contained in:
parent
5514bc9d16
commit
ae8152ad87
|
@ -166,7 +166,6 @@ func EntityToXEP0393(entity *client.TextEntity) (*Insertion, *Insertion) {
|
||||||
case client.TypeTextEntityTypeStrikethrough:
|
case client.TypeTextEntityTypeStrikethrough:
|
||||||
return markupBraces(entity, strikeRunesXEP0393, strikeRunesXEP0393)
|
return markupBraces(entity, strikeRunesXEP0393, strikeRunesXEP0393)
|
||||||
case client.TypeTextEntityTypeCode:
|
case client.TypeTextEntityTypeCode:
|
||||||
// inline code is non-standard
|
|
||||||
return markupBraces(entity, codeRunes, codeRunes)
|
return markupBraces(entity, codeRunes, codeRunes)
|
||||||
case client.TypeTextEntityTypePre:
|
case client.TypeTextEntityTypePre:
|
||||||
return markupBraces(entity, preRuneStart, preRuneEnd)
|
return markupBraces(entity, preRuneStart, preRuneEnd)
|
||||||
|
|
Loading…
Reference in a new issue