Fixed lua version errors
This commit is contained in:
parent
c6107ca968
commit
354e9120b2
@ -2,13 +2,15 @@
|
||||
|
||||
This tool helps to download all images in markdown document and put them into one folder with changed paths
|
||||
|
||||
**Warning**: lua 5.2 version is required
|
||||
|
||||
## Dependency installation:
|
||||
|
||||
```bash
|
||||
luarocks install luasec
|
||||
```
|
||||
|
||||
## Usage:
|
||||
## Usage:
|
||||
|
||||
```bash
|
||||
md-parser [-o <output>] [-s <server>] [-c <config>] [-u] [-h]
|
||||
|
@ -4,7 +4,7 @@ function process_md.get_file_content(path)
|
||||
local f, err = io.open(path, "r+")
|
||||
assert(f, err)
|
||||
|
||||
local content = f:read("a")
|
||||
local content = f:read("*a")
|
||||
|
||||
f:close()
|
||||
return content
|
||||
|
Loading…
x
Reference in New Issue
Block a user