Render MathJax in the Browser’s Sort Field column
The Browser’s Sort Field column currently displays raw MathJax source, such as \(\ce{AlCl3}\), while the editor below renders the same expression after the note is selected.
I would like to make MathJax expressions readable directly in the Sort Field column, without requiring each note to be selected.
The Browser currently uses a Qt item view with plain-text cells, while MathJax is rendered inside a web view. A possible implementation would:
- reuse Anki’s existing MathJax-to-SVG conversion;
- render only visible cells asynchronously;
- cache results by expression, theme and font size;
- use a Qt item delegate to draw mixed text and SVG;
- fall back to the original source if rendering fails.
Before preparing a PR, would this approach be acceptable in core Anki? Would maintainers prefer an add-on proof of concept first?
