calckey/packages/client
naskya 6cfb83660f fix: centering block math (#9946)
Similar to `inlineCode` and `blockCode`, MFM provides two types of formula syntax, `mathInline` and `mathBlock` (I'm curious why these aren't called `inlineMath`/`blockMath`, but oh well)

Other platforms, like GitHub, **Math**todon, my blog, etc., also support these two types of formula representation, and math blocks are centered on (maybe) all such platforms.

![](https://cdn.discordapp.com/attachments/823878222897741868/1101837026304720997/2023-04-29_201943.png)

But Calckey (Misskey v12) don't center math blocks. I'd say this is a bug, and this makes `blockMath` useless (it's just `inlineMath` in a new line).

![](https://cdn.discordapp.com/attachments/823878222897741868/1101837026027917342/2023-04-29_202008.png)

So I fixed this.

![](https://cdn.discordapp.com/attachments/823878222897741868/1101837183574355978/2023-04-29_202854.png)

Co-authored-by: naskya <m@naskya.net>
Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9946
Co-authored-by: naskya <naskya@noreply.codeberg.org>
Co-committed-by: naskya <naskya@noreply.codeberg.org>
2023-04-29 14:01:24 +00:00
..
.vscode Remove usused eslint files 2023-01-12 22:27:17 -08:00
@types formatting 2023-04-06 18:56:46 -07:00
assets formatting 2023-04-06 18:56:46 -07:00
src fix: centering block math (#9946) 2023-04-29 14:01:24 +00:00
.prettierrc fix: format script; chore: format 2023-04-07 17:01:42 -07:00
package.json chore: formatting 2023-04-12 17:19:14 -07:00
tsconfig.json Remove usused eslint files 2023-01-12 22:27:17 -08:00
vite.config.ts Revert "Revert "Incorporate calckey-js into calckey repository (#9820)"" 2023-04-07 17:44:27 -07:00
vite.json5.ts formatting 2023-04-06 18:56:46 -07:00