mirror of
https://github.com/arnaucube/md-live-server.git
synced 2026-02-06 19:36:38 +01:00
add tables borders, add README vim config
This commit is contained in:
@@ -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
BIN
md-live-server
Binary file not shown.
12
templates.go
12
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user