mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
[PR #325] [MERGED] Add KaTeX support to MarkdownPreviewer and HTML export #724
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#724
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/325
Author: @tobifasc
Created: 1/31/2020
Status: ✅ Merged
Merged: 2/6/2020
Merged by: @Rokt33r
Base:
master← Head:master📝 Commits (2)
eab759d#227 use remark-math and rehype-katex in MarkdownPreviewer to display katexfea7d2c#227 use remark-math and rehype-katex when exporting html📊 Changes
5 files changed (+105 additions, -0 deletions)
View changed files
📝
package-lock.json(+90 -0)📝
package.json(+3 -0)📝
src/components/atoms/MarkdownPreviewer.tsx(+5 -0)📝
src/lib/exports.ts(+5 -0)📝
typings/unified.d.ts(+2 -0)📄 Description
I used remark-math and rehype-katex to render TeX written inside
$...$or$$...$$.Inside
MarkdownPreviewerit was easy to importkatex.min.cssfrom inside node_modules but to get correct styling in exported HTML files (without also exporting css/font files) i added a link tag referring tokatex.min.csshosted by jsdelivr.IssueHunt Summary
Referenced issues
This pull request has been submitted to:
IssueHunt has been backed by the following sponsors. Become a sponsor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.