Skip to content

[Android]: it's possible to paste styled text(bold etc.) into a codeblock #547

@pkaramon

Description

@pkaramon

Describe the bug
Codeblock is blocking bold, italic, underline, strike and inline code styles. But it's still possible to use them inside a codeblock, if we first copy text with those styles and paste it into it.

To Reproduce
Steps to reproduce the behavior:

  1. Launch example app
  2. Set content to
<html>
<p><b><i><u><s><code>Hello</code></s></u></i></b></p>
<codeblock>
<p></p>
</codeblock>
</html>
  1. Copy styled text
  2. Paste it into codeblock

Expected behavior
Styles should be stripped when pasting into a codeblock.

Screenshots

Screen.Recording.2026-04-14.at.11.06.56.mov

Device (please complete the following information):

  • Device: Pixel 9
  • OS:Android 16
  • Version API 36 "Baklava"

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions