We need to be able to use equations in comments, so we should parse latex style fences and render with katex. elm-katex is an OK start, but we need to parse our markdown to identify portions of the string to use the inline and display environments on. Problem at the moment with that is the poor regex support that javascript has (no negative lookbehinds to separate $ from $$). I'm not really sure if it should be parsed after the markdown step or before either?
We need to be able to use equations in comments, so we should parse latex style fences and render with katex. elm-katex is an OK start, but we need to parse our markdown to identify portions of the string to use the
inline
anddisplay
environments on. Problem at the moment with that is the poor regex support that javascript has (no negative lookbehinds to separate $ from $$). I'm not really sure if it should be parsed after the markdown step or before either?