This fork includes several enhancements and new features:
- 🎨 External CSS Support - Load external CSS files from URLs or local paths
- Support for HTTP/HTTPS URLs and local file paths
- Configurable CSS loading order
- Hot reload when configuration changes
- See EXTERNAL_CSS_README.md for details
Here is the effect of the new feature:
-
⚙️ Enhanced Editor Options
- Configurable outline display settings
- Optional default editor behavior for .md files
- Menu button to open markdown files in split view
- 🔧 Build System Enhancement - Switched from pnpm to bun for faster builds
- 🐛 Bug Fixes - Fixed OverlayWebview disposal issues
- 🎯 UI/UX Improvements - Added distinct icons for menu buttons
New configuration options available:
markdown-editor.externalCssFiles
- Array of external CSS file paths/URLsmarkdown-editor.cssLoadOrder
- Control CSS loading prioritymarkdown-editor.outlineDisplaySetting
- Configure outline panel behavior
- What You See Is What You Get (WYSIWYG)
- Auto sync changes between the VSCode editor and webview
- Copy markdown/html
- Uploaded/pasted/drag-dropped images will be auto-saved to the
assets
folder - Multi-theme support
- Shortcut keys
- Multiple editting modes: instant Rendering mode (Recommand!) / WYSIWYG mode / split screen mode
- Markdown extensions
- Multiple graph support including KaTeX / Mermaid / Graphviz / ECharts / abc.js(notation) / ...
- For more usage please seevditor
https://marketplace.visualstudio.com/items?itemName=zaaack.markdown-editor
- open a markdown file
- type
cmd-shift-p
to enter command mode - type
markdown-editor: Open with markdown editor
- open a markdown file
- type
ctrl+shift+alt+m
for win orcmd+shift+alt+m
for mac
- right click on markdown file
- then click
Open with markdown editor
- right click on a opened markdown file's tab title
- then click
Open with markdown editor
This project includes automated build scripts for easy development and packaging:
# Build and create VSIX package
npm run package
# Build and publish (with version bump)
npm run publish
# Build and package only (no publish)
npm run publish:package-only
# Build and publish without version bump
npm run publish:skip-version
For more details, see scripts/README.md.
Edit your settings.json and add
"markdown-editor.customCss": "my custom css rules"
// Eg: "markdown-editor.customCss": ".vditor-ir pre.vditor-reset {line-height: 32px;padding-right: calc(100% - 800px) !important; margin-left: 100px; font-family: system-ui !important;}"
- UsingCustom Text Editor (demo)
MIT
123
If you like this extension make sure to star the repo. I am always looking for new ideas and feedback. In addition, it is possible to donate via paypal.