Browse Source

add tables borders, add README vim config

master
arnaucube 5 years ago
parent
commit
f4a55d1f1e
3 changed files with 18 additions and 0 deletions
  1. +6
    -0
      README.md
  2. BIN
      md-live-server
  3. +12
    -0
      templates.go

+ 6
- 0
README.md

@ -10,6 +10,12 @@ Put the binary file `md-live-server` in your `$PATH`, and then go to the directo
```
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

BIN
md-live-server


+ 12
- 0
templates.go

@ -38,6 +38,9 @@ pre, code{
background: #333333;
border-radius: 3px;
}
pre{
padding: 5px;
}
pre>code {
color: #c0fffa;
}
@ -51,6 +54,15 @@ h2:after{
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>

Loading…
Cancel
Save