Wrangling monospace

I wanted Pagecord to support monospace/code blocks but, of course, every email provider handles HTML differently. Gmail uses <font> tags, Fastmail uses <style="font-family: monospace">, whereas HEY has a dedicated code option on the menu bar which inserts <pre> tags. What joy!

I've added a pre-processor to Pagecord that tries to make sense of these, and it seems to work ok – at least for these three providers. I've yet to try Outlook 😬🙈

The only downside is that Gmail and Fastmail use <code> blocks which means the monospaced text will wrap, which doesn't look great for long lines. Maybe it could be cleverer further down the line but, for now, them's the breaks. This was posted from Fastmail and it looks ok, so I'll take it.

<div>
  <p>Until next time,</p>
  <p>Ciao 👋</p>
</div>