Coverage: 51%
Markdown Instant Preview aka mip is a fast and bloatless markdown document
viewer. Mip uses a webview window to render the markdown. I wrote mip to
preview my markdown files which I write in vim.
After a first attempt of developing Mip in Crystal, Rust seemed a better choice as it has more mature parallism support. This is essential for running webview next to a webserver.
See the simple workflow in this video...
mip-video.webm
- built-in webserver
- preview images
- hides frontmatter
- autoreload if file changes
- uft8 & 🤔 support
v0.2.3 is the last version with macOS and Windows support. Future versions will be Linux-only, using GTK4 and WebKitGTK 6.0. If you need macOS or Windows support, pin to v0.2.3.
On NixOS / with Nix flakes:
nix run github:mipmip/mip.rs -- ./README.mdBinaries for macOS and Windows (v0.2.3 and earlier) can be downloaded from the release pages.
mip [markdown file]nix develop
make
## Development
### Prerequisites
- webkitgtk
- rust
- yarn (if you want modify the html template)
### Setup HTML Template dev Environment
```bash
yarn
cargo runcargo build --releasemake compthemes
./mip- Fork it (https://github.com/mipmip/mip.rs/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
- Pim Snel - creator and maintainer
- Eduardo Cuducos