Comments (4)
I would love that too ;) Actually that is one of the features I want most, because I plan to use mdBook for my school notes. But the best place to implement this is in the markdown parser (pulldown-cmark). There is already a request there, but it's not very active.
from mdbook.
I added the MathJax JS files (from the CDN) you can already add math equations but sometimes it collides with the markdown rules, for example:
*$$ 1 * 2 + 3 = 5 $$
works but *$$1*2+3=5$$
does not.
from mdbook.
Yea, I agree that it should be in the markdown parser. As a workaround you could sanitize the MD by replacing the math with random, non-repeating characters a-z and keeping a lookup table, then putting the math back into the generated HTML. Maybe there is an easier way?
from mdbook.
At the moment, it should work using:
Blocks
\\[ Your math here... \\]
Inline
\\( Your math here... \\)
You have to double-escape, because the markdown parser is going to remove one backslash. I have used this and I haven't had any problems. The dollar signs do not work well and would need support in the markdown parser.
from mdbook.
Related Issues (20)
- Python preprocessor example is ignorant of part titles
- I want to modify *title* css style, bold and blue
- Are monitoring services available? HOT 2
- Link Anything HOT 1
- Add `tsx` support HOT 1
- Images cannot be displayed when there is a space in the images' name. HOT 3
- Syntax highlighting for console interactions HOT 1
- Better syntax highlighting support - consider switchting from HighlightJS to Prism
- sidebar doesn't close or content invisible HOT 3
- Running mdbook serve from Program files sub folder on Wndows 11
- No RTL Support & Search not working for languages like arabic or persian! HOT 6
- Markdown blockquote parsing issue with inline tags HOT 4
- the package `mdbook` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features. HOT 4
- Allow set based indexing for including lines from files
- When generating a pdf, automatically generate the directory as a bookmark HOT 1
- Viewing/Editing summary.md deletes all my files HOT 3
- Is there a way to differentiate external links?
- Is it possible to remove the next/previous page buttons? HOT 2
- mdbook uninstalls itself when running from a UNC file share
- maintain the sidebar size
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdbook.