The existing markdown parser. By default it passes raw HTML through, which the project's own comment had wrongly described as safe. The parse function's return type is a union of a string and a promise, so I had to cast it even when calling it synchronously.
- What got in the way
- Passing raw HTML through by default is an easy way to end up with XSS, and the union return type got in the way under strict type checking.