halilozercan/compose-richtext

Support <code> blocks

garretyoder opened this issue · 1 comments

For example the following string:

<code>
Example                   Text
Newline
</code>

Will render as:
Example Text Newline

Replacing all \n with <p> seems to reliably solve the newline problem, and replacing spaces with the html space code seems to solve that problem, but I'm unsure how to swap the font to monospace for that specific block of html.

I had two tabs open and opened this issue in the completely wrong repo, my apologies.