arnaucube
arnaucube/md-live-serverPublic Self-hosted repository
add tables borders, add README vim config
arnaucube arnaucube@gmail.com
Mon, 20 May 2019 23:51:36 +0200
commit

f4a55d1f1ecedf818582ea36417d18d58aa41f29

parent

1eec2da1736f34d741cd39fa78519cdac8735733

3 files changed, 18 insertions(+), 0 deletions(-)

jump to
M README.md → README.md

@@ -10,6 +10,12 @@ > 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 +``` + ## Features - [x] server rendering .md files - [x] live reload when .md file changes
M templates.go → templates.go

@@ -38,6 +38,9 @@ padding-right: 3px;

background: #333333; border-radius: 3px; } +pre{ + padding: 5px; +} pre>code { color: #c0fffa; }

@@ -50,6 +53,15 @@ h2:after{

content:' '; display:block; border:0.7px solid #cccccc; +} +th{ + padding: 3px; + border: 1px solid #234b4f; + background-color: #143134; +} +td{ + padding: 3px; + border: 1px solid #234b4f; } </style> <body>