Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ブラウザMathMLを活用した、数式記法の復活 #9754

Open
EbiseLutica opened this issue Jan 30, 2023 · 2 comments
Open

ブラウザMathMLを活用した、数式記法の復活 #9754

EbiseLutica opened this issue Jan 30, 2023 · 2 comments
Labels
✨Feature This adds/improves/enhances a feature packages/frontend Client side specific issue/PR

Comments

@EbiseLutica
Copy link
Contributor

Summary

数式を表現したい層向けに、ブラウザがネイティブサポートしているMathMLへのレンダリングを行う形で数式記法を復活させたらどうかという提案。MathMLは、Misskeyが要求するモダンブラウザで既にサポートされている。
https://developer.mozilla.org/ja/docs/Web/MathML

また、LaTeX記法のパース用ライブラリもあるため、記法をパースしてMathMLとしてレンダリングするとよさそう
https://www.npmjs.com/package/latex-parser

@EbiseLutica EbiseLutica added ✨Feature This adds/improves/enhances a feature packages/frontend Client side specific issue/PR labels Jan 30, 2023
@syuilo
Copy link
Member

syuilo commented Jan 30, 2023

自前でパースする必要があるのがちょっと面倒

@EbiseLutica
Copy link
Contributor Author

調べてみたらこういうものがあった。KaTeXをフォークして、ブラウザのMathMLとしてレンダリングするよう改造したものらしい。
https://www.npmjs.com/package/temml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature packages/frontend Client side specific issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants