Fixed lua version errors

This commit is contained in:
Dmitriy Shishkov 2021-04-10 12:39:33 +05:00
parent c6107ca968
commit 354e9120b2
No known key found for this signature in database
GPG Key ID: 7CAE12ED13853CAC
2 changed files with 4 additions and 2 deletions

View File

@ -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]

View File

@ -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