MIRA.vsix
MIRA = Markdown Inline Rendering Apparatus.
A VS Code extension for improving the display of markdown directly in the editor.
This makes markdown editing more pleasant as you don't need to be switching between the editor and preview as much, and it hides a lot of clutter.
⚠️ Note: Add Hack Nerd Font
to your VS Code font settings before using this extension.
Forked from domdomegg/markdown-inline-preview-vscode.
Inspired largely by MeanderingProgrammer/render-markdown.nvim.
https://github.com/domdomegg/markdown-inline-preview-vscode/assets/4953590/112da46d-214b-4d2c-8f13-c269c8d040cd
Tweaks made include:
- Making headings larger
- Hiding bold, italic, strikethrough and code formatting characters
- List node icon
- Adding a checkbox icon
- Collapsing hyperlinks and images
More Keywords (for SEO):
Markdown, Inline Preview, WYSIWYG
Usage
⚠️ Note: Add Hack Nerd Font
to your VS Code font settings before using this extension.
Install from the VS Code Marketplace or Open VSX Registry
Recommended `.vscode/settings.json`
{
"[markdown]": {
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},
"editor.fontFamily": "Fira Sans",
"editor.wrappingStrategy": "advanced",
"editor.fontSize": 13,
"editor.lineHeight": 1.5,
"editor.cursorBlinking": "phase",
"editor.lineNumbers": "off",
"editor.indentSize": "tabSize",
"editor.tabSize": 6,
"editor.insertSpaces": false,
"editor.autoClosingBrackets": "never",
"editor.bracketPairColorization.enabled": false,
"editor.matchBrackets": "never",
"editor.guides.indentation": false,
"editor.padding.top": 20
},
"editor.tokenColorCustomizations": {
"[Default Dark Modern]": {
"textMateRules": [
{
"scope": "punctuation.definition.list.begin.markdown",
"settings": {
"foreground": "#777",
}
},
]
}
}
}
Features
[TODO e.g. text A become text B]
Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with
npm install
- Build with
npm run build
Run the extension locally with the 'Run and Debug' preset in VS Code.
Releases
Versions follow the semantic versioning spec.
To release:
- Use
npm version <major | minor | patch>
to bump the version
- Run
git push --follow-tags
to push with tags
- Wait for GitHub Actions to publish to the NPM registry.
Known Issues / Limitations
- Line Wrapping with Links/Images: If the original Markdown source for a link or image is long enough to wrap onto a new line, the preview text (e.g., "🔗 Google") may also incorrectly wrap, even if the preview itself is short. This is due to how VS Code handles decorations on wrapped lines. As a workaround, you can consider disabling word wrap in your Markdown editor settings (
'editor.wordWrap': 'off'
).
TODO
- [ ] fix the wrapping bug
- [ ] more features as in
render-markdown.nvim