## pigeon.digital

14 Members
www.pigeon.digital8 Servers

Timestamp Message
16 Sep 2019
14:12:33Matthewrendering to canvas is pretty trivial
14:13:02Timno worries, i really wanna see this working! i’m travelling today, annoyingly, but should really be able to work on it tomorrow
14:13:13Timhow long are mozilla testing for?
14:13:52Matthewuntil Oct 9th iirc
14:14:05Matthewso we have a few weeks
14:14:08Matthewhttps://github.com/matrix-org/matrix-react-sdk/blob/58fd828944381da219038c25e359fed0b8793ea3/src/ContentMessages.js#L75
14:14:15Matthewis an example of Canvas already being used in Riot/Web
14:14:29Timok, will check that out, thanks
14:15:08Matthewand would be what one would shamelessly rip off (including the uploading) to do the needed here
until Oct 9th iirc
oh god please anything but slack.
14:16:06Tim
oh god please anything but slack.
the only thing worse would be discord haha
14:16:14Matthew
oh god please anything but slack.
oi ;P
the only thing worse would be discord haha
Don't think that's in the running.
oi ;P
Obviously it should be Matrix. but what it shouldn't be is slack.
17:01:26Timon my phone so can’t test, but how do you send inline images ?
17:04:28Timah ok, it is that simple
17:04:33Timgreat
18:01:22Matthewthe catch is that we don't currently have any way of defining baseline offsets
18:01:36Matthewi think everything might be baseline-aligned by default
18:04:24Matthewwe could probably mitigate that by adding in a vertical-align attribute of some kind
18:05:24Matthewit's needed for custom emoji too
17 Sep 2019
00:14:11Timmaybe i'm being dense, but I don't see how to use canvas to turn some HTML into an image
00:14:35Tim i've looked at createThumbnail, but from what i can tell, this takes an actual image to make a thumbnail from
00:16:25Timseems like the KaTeX people say this isn't yet really supported? https://github.com/KaTeX/KaTeX/pull/251
00:22:41Timand even with MathJax instead of KaTeX, support is dodgy http://jsfiddle.net/RG7yG/4/
01:25:13Tim starting to go back to the opinion that it should be up to the receiving client to provide better fallbacks, like images, but i understand why this isn’t always practical
01:49:01uhoregI found https://github.com/CurriculumAssociates/canvas-latex which looks somewhat promising. With MathJax, you could try outputting to SVG, and then drawing the SVG on a canvas.

#### There are no newer messages yet.

Back to Room List