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

Katex support? #2

Open
5u4 opened this issue Feb 11, 2022 · 4 comments
Open

Katex support? #2

5u4 opened this issue Feb 11, 2022 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@5u4
Copy link

5u4 commented Feb 11, 2022

This is an awesome project!

I am wondering whether it is possible to add Katex support.

After some research, I found out it may be done through changing the marker renderer markedjs/marked#1538 (comment).
Now I am stuck on finding a katex binding on deno for translating const katex = require('katex').

I am not familiar with deno. Any help will be appreciated :)

@kkga
Copy link
Owner

kkga commented Feb 11, 2022

Hi, thanks!

Looks like Katex provides an ESM module: https://katex.org/docs/browser.html#ecmascript-module

In theory, you should be able to import it and use.

@5u4
Copy link
Author

5u4 commented Feb 12, 2022

thanks!

@5u4 5u4 closed this as completed Feb 12, 2022
@thangisme
Copy link

I know this is old but I'd be nice to have a math option in post frontmatter if set to true then it will render katex

@kkga kkga reopened this Nov 20, 2023
@kkga kkga added enhancement New feature or request good first issue Good for newcomers labels Nov 20, 2023
@kkga
Copy link
Owner

kkga commented Nov 20, 2023

This would be a good enhancement, but at the moment I don't have the bandwidth to implement it. Leaving it here as a potential contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants