Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/karapetianash/markdown-preview


https://github.com/karapetianash/markdown-preview

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## Description

This CLI tool performs four main steps:
1. Reads the contents of the input Markdown file;
2. Uses some Go external libraries to parse Markdown and generate a valid
HTML block;
3. Wraps the results with an HTML header and footer;
4. Saves the buffer to an HTML file that you can view in a browser.

## Supported flags
- `-file `\
Markdown file to be previewed.
- `-s`\
Skip auto-preview.

## Usage
To build the app, run the following command in the root folder:

```
> go build .
```
Above command will generate `mdp` file. This name is defined in the `go.mod` file, and it will be the initialized module name.

After that you can run the program using the cmd and pass the file:

```
> .\todo-cli.exe -file File Name
```