Right now, we have to fight pulldown_cmark on a bunch of stuff, because it's trying to do a bunch of stuff for parsing Markdown. This includes
- eating newlines
- adding
<p> tags to messages
- using
<pre> and <code> instead of a <span> that we can style
- not handling underline
This is annoying and suggests that we might be better off writing our own markdown parser. This doesn't need to implement the whole Markdown spec, but instead just the inline formatting stuff (and probably doesn't even need to be super good at it's job, so long as it can get most of the cases). This would make handling blank newlines much easier as well.
Right now, we have to fight
pulldown_cmarkon a bunch of stuff, because it's trying to do a bunch of stuff for parsing Markdown. This includes<p>tags to messages<pre>and<code>instead of a<span>that we can styleThis is annoying and suggests that we might be better off writing our own markdown parser. This doesn't need to implement the whole Markdown spec, but instead just the inline formatting stuff (and probably doesn't even need to be super good at it's job, so long as it can get most of the cases). This would make handling blank newlines much easier as well.