The MMarked is a Visual Studio Code extension that provides real-time previews of Markdown files with enhanced LaTeX support using @mathcrowd/mmarked.
This extension is designed for educators, students, and anyone who needs to visualize mathematical expressions and custom Markdown syntax in their documentation.
- ✅ Full CommonMark syntax support: Comprehensive compatibility with CommonMark standards.
- 🔢 Footnotes Blocks: Supports rendering auto-numbered footnotes with easy reference links.
- 📘 Theorem-like blocks: Supports rendering mathematical theorems, lemmas, and examples in a block format with titles, auto-numbering, and reference links.
- 🖼️ Image resizing capabilities: Allows for customizable rendering of images and videos using simple syntax.
- 🔍 Hidden/show solution blocks: Provides a solution block with a toggle button for easy visibility control, implemented with straightforward syntax.
- 🧮 TeX to SVG conversion: Converts TeX equations to scalable vector graphics for high-quality rendering.
- 🌗 Dark/Light Theme CSS: Customizable theme support for dark and light modes to enhance readability and user experience.
- ⚡ Real-Time Preview: Enables instant visual feedback while editing, making content creation and adjustments faster and more intuitive.
- Open Visual Studio Code.
- Go to the Extensions view (click on the Extensions icon in the sidebar or use the shortcut
Ctrl+Shift+X
). - Search for mmarked in the search box.
- Click the Install button.
To preview your Markdown document with LaTeX support:
- Open a Markdown file (
.md
). - Use the command palette (
Ctrl+Shift+P
) and select Markdown Preview with mmarked. - Make edits to your Markdown file, and see changes reflected in real-time.
You can customize extenstion's feature using the following options in your .vscode/settings.json
:
{
"mmarked": {
"cssUrl": "https://cdn2.mathcrowd.cn/assets/styles/mathcrowd.css",
"darkCssUrl": "https://cdn2.mathcrowd.cn/assets/styles/mathcrowd-dark.css",
"enableTex2svg": true
}
}
Mathcrowd is an innovative startup founded by experienced independent developers and mathematics educators. We're on a mission to revolutionize math education in China through cutting-edge technology. Our goal is to create an engaging online community for math enthusiasts and self-learners, offering rich, interactive, and visualized learning content.
🌐 MCLab Official Website: https://lab.mathcrowd.cn
🌐 Our Online Math Community: https://www.mathcrowd.cn
💬 Join Our Discord: https://discord.gg/6VMUVA5Yq2
We welcome contributions! Please see our Contributing Guidelines for more details.
For any questions or issues regarding the MMarked extension, please open an issue on our GitHub repository.
For inquiries specifically related to the @mathcrowd/mmarked library itself, please open an issue on its dedicated GitHub repository.