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

[FR] Add LaTeX in MarkDown in MDsveX support #288

Closed
Mlocik97 opened this issue Jul 31, 2021 · 3 comments
Closed

[FR] Add LaTeX in MarkDown in MDsveX support #288

Mlocik97 opened this issue Jul 31, 2021 · 3 comments

Comments

@Mlocik97
Copy link

for example:

$\color{red}{Hello~World}$

should output in red text "Hello World"... VS Code markdown parser can use LaTeX inside MarkDown, and I would like if this would be possible with MDsveX too,...

@babichjacob
Copy link
Contributor

Install the remark-math and rehype-katex plugins and configure mdsvex to use them:

https://github.com/remarkjs/remark-math

@Mlocik97
Copy link
Author

well, I have

mdsvex({
			extension: ".md",
			rehypePlugins: [rehype],
			remarkPlugins: [remark]
		})

this in config... but I get error mdast-util-definitions expected node

@pngwn
Copy link
Owner

pngwn commented Oct 17, 2021

Tracking issue for this: #302.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants