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

https://github.com/nilsherzig/live-markdown-preview


https://github.com/nilsherzig/live-markdown-preview

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

## WIP! Check commit logs

## Usage

```bash
go run . ~/the/folder/you/want/to/monitor

# or build it

go build .
./helix-markdown-preview ~/the/folder/you/want/to/monitor
```

## Working:

- rendering ms after file change
- support multiple files in same folder
- background file change monitoring
- rendering using the gin web server library and web sockets
- mermaid diagrams
- code highlight
- GitHub markdown support
- GitHub markdown theme
- templates and scripts are now embedded into the binary during the build process
- recursive folder monitoring
- remember theme via browser local storage

## Things I would like to change / implement

- health check from web socket (ping - pong) - close website on disconnect
- preview binary disconnects web socket on normal exit `SIGTERM`
- helix doesn't seem to send `SIGTERM` to child processes on exit
- getting math / latex to render
- everything included, no network connection needed (I don't know how copyright works)
- Custom kanban renderer / parser
- run parser as marked extension in client side JS
- using a code block (?)
- Somehow add kanban auto formatting to helix (pipe to external script?)
- Automatically start when helix opens a markdown file
- scroll to current position
- I don't know how to get the current line number from helix, maybe scroll to last edit?