arnaucube 0c5629a3a6 | 3 years ago | |
---|---|---|
LICENSE | 5 years ago | |
README.md | 3 years ago | |
go.mod | 4 years ago | |
go.sum | 4 years ago | |
main.go | 4 years ago | |
md-live-server | 3 years ago | |
screenshot00.png | 3 years ago | |
templates.go | 3 years ago | |
test.md | 3 years ago | |
utils.go | 4 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