mip

Version, currently 0.1.14 versions

github.com/mipmip/mip.cr

Markdown In Preview. A fast and simple markdown viewer

6 stars
0 dependents
License: MIT

Nothing has been indexed for 0.1.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  mip:
    github: mipmip/mip.cr
    version: ~> 0.1.1

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1.1. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

# Markdown Instant Preview - MiP

Markdown Instant Preview aka `mip` is a fast and simple markdown viewer. Mip uses
a webview window to render the markdown. I wrote `mip` to this preview my markdown
files which I write in vim.

![](./markdown.png)

## Installation

- no releases yet. You should compile it yourself.

## Features

- built-in webserver
- preview images
- show/hide frontmatter
- autoreload if file changes

## Todo

- refactor code
- release workflow

## Usage

```
  mip. A simple markdown viewer.

  Usage:

    mip [options] [FILE]

  Options:

    --help                           Show this help.
    --version                        Show version.

  Arguments:

    01. file      Path to markfown file. [type:String] [required]

  Shortcuts:

    CTRL-r        Reload document
```


## Development

### Prerequisites

- crystal 1.x
- yarn
- make
- webkitgtk
- fswatch

### Setup Dev Environment

```bash
shards install
yarn
```

### Compile and run program

```bash
make
```

### Build optimized program

```bash
make build
./mip
```

### Compile themes

```bash
make build
./mip
```

## Contributing

1. Fork it (<https://github.com/mipmip/mip/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

## Contributors

- [Pim Snel](https://github.com/mipmip) - creator and maintainer