ralsei / types.pl

The glitch-soc/Mastodon fork running on types.pl

Home Page:https://types.pl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add LaTeX support, with selective content warnings

ralsei opened this issue · comments

Pitch

Add LaTeX support, so wrapping stuff in $$ or \[ \] works. Yeah.

Probably use KaTeX or something.

Motivation

A lot of posts on types.pl involve math of some sort. Being able to actually format that math would rock.

We would have to add selective content warnings, so posts with LaTeX get auto-CWed when either federating or being posted altogether, for screen reader accessibility reasons.

Probably gonna try pulling some code from https://mathstodon.xyz for this. But the auto-CW stuff would be on my own.

This partially works right now.

Issues:

  • I had to disable large portions of the Markdown support with an awful monkeypatch regex.
  • No auto-content warnings.

Until those are fixed, I'm not closing this.

This is as finished as it's going to be, given my schedule.