From 15e1d3f87c5e18f3429c49d21b30e66fb2a9cff7 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 19 Feb 2020 21:54:53 +0200 Subject: Fix rendering formatted m.emotes --- ui/messages/html/blockquote.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/messages/html/blockquote.go') diff --git a/ui/messages/html/blockquote.go b/ui/messages/html/blockquote.go index 288d86d..bb7c009 100644 --- a/ui/messages/html/blockquote.go +++ b/ui/messages/html/blockquote.go @@ -40,6 +40,11 @@ func NewBlockquoteEntity(children []Entity) *BlockquoteEntity { }} } +func (be *BlockquoteEntity) AdjustStyle(fn AdjustStyleFunc) Entity { + be.BaseEntity = be.BaseEntity.AdjustStyle(fn).(*BaseEntity) + return be +} + func (be *BlockquoteEntity) Clone() Entity { return &BlockquoteEntity{ContainerEntity: be.ContainerEntity.Clone().(*ContainerEntity)} } -- cgit v1.2.3