From 354e9120b28923f2113156bbec0b3f08d4e64ef0 Mon Sep 17 00:00:00 2001 From: dm1sh Date: Sat, 10 Apr 2021 12:39:33 +0500 Subject: [PATCH] Fixed lua version errors --- README.md | 4 +++- src/process_md.lua | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9902e1..3e13b1f 100644 --- a/README.md +++ b/README.md @@ -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 ] [-s ] [-c ] [-u] [-h] diff --git a/src/process_md.lua b/src/process_md.lua index f9b8fb1..08b1daf 100644 --- a/src/process_md.lua +++ b/src/process_md.lua @@ -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