arnaucube 5f870fb32a | 1 year ago | |
---|---|---|
.gitignore | 1 year ago | |
LICENSE | 5 years ago | |
README.md | 1 year ago | |
compile.sh | 1 year ago | |
go.mod | 1 year ago | |
go.sum | 1 year ago | |
main.go | 1 year ago | |
screenshot00.png | 3 years ago | |
templates.go | 1 year ago | |
test.md | 1 year ago | |
utils.go | 2 years ago |
Server that renders markdown files and live updates the page each time that the file is updated.
Put the binary file md-live-server
in your $PATH
, and then go to the directory where are the markdown files that want to live render, and just use:
> md-live-server
And then go to the browser at http://127.0.0.1:8080
Warning for vim / nvim users: vim by default selects the writting strategy, and sometimes writes directly to the files and other times renames the old file and writes a new one. This is solved by adding this line to the .vimrc
/ init.vim
file:
set backupcopy=yes