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
|
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:
|
## Dependency installation:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
luarocks install luasec
|
luarocks install luasec
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage:
|
## Usage:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
md-parser [-o <output>] [-s <server>] [-c <config>] [-u] [-h]
|
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+")
|
local f, err = io.open(path, "r+")
|
||||||
assert(f, err)
|
assert(f, err)
|
||||||
|
|
||||||
local content = f:read("a")
|
local content = f:read("*a")
|
||||||
|
|
||||||
f:close()
|
f:close()
|
||||||
return content
|
return content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user