-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Math Jax integration #2078
Comments
@drnazmulalam export const Math = ({ code }) => (
<img
src={`https://math.now.sh?from=${encodeURIComponent(code)}`}
style={{ height: "100%", verticalAlign: "middle" }}
/>
); <Math code="\LaTeX" /> |
You’ll have to find a markdown plugin for this. This is out of scope of docusaurus imo. |
If you are on v1, you can use katex https://github.com/Khan/KaTeX They have remarkable-katex plugin which lets u write latex on markdown |
@endiliey and how about for v2? |
In v2 you can add your own plugins to do this, so definitely not in v2. |
Hi @yangshun , (comment updated) |
@Ir1d Could you please highlight where you managed to keep those plugin list in v2 docusaurus? |
[update]: |
@Ir1d I get this error
|
@sivakon Im not developing that branch any more. And I'm not familiar with this error msg |
@sivakon const remarkMath = require("remark-math");
module.exports = {
...
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
remarkPlugins: [
remarkMath,
],
... |
@hhk7734 where did you put this and which version did you try this on? |
thanks. got it working :) |
📚 Documentation
(Hi, I am writing mathematical equations using Latex, but not rendered properly. I would like to know the way I can write math in the markdown blog or page files and will be displayed on my web pages. )
Have you read the Contributing Guidelines on issues?
(yes)
The text was updated successfully, but these errors were encountered: