2021-04-10 12:39:33 +05:00
2020-07-23 19:47:36 +05:00
2020-07-24 11:46:11 +05:00
2021-04-10 12:39:33 +05:00
2020-07-23 19:47:36 +05:00
2020-07-23 19:47:36 +05:00
2020-07-23 20:11:18 +05:00
2021-04-10 12:39:33 +05:00

Markdown article online assets downloader

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:

luarocks install luasec

Usage:

md-parser [-o <output>] [-s <server>] [-c <config>] [-u] [-h]
       <input>

Command line utility for saving markdown document online assets locally and upload it to server with scp

Arguments:
   input                 Input file.

Options:
         -o <output>,    Output directory. (default: ./)
   --output <output>
         -s <server>,    Username and hostname in username@hostname notation.
   --server <server>
         -c <config>,    Configuration file like
   --config <config>     			path= Output path on server
                         			host= Server username and hostname in username@hostname notation
   -u, --upload          If sould upload to server
   -h, --help            Show this help message and exit.

It also has integrated functional to upload this article over ssh. As for MIT licence you can freely fork it and modify code for your own usage cases.

Example:

lua src/main.lua spec/assets/tmp_dir/some\ file.md -u -s dm1sh@localhost -o /tmp/art
Description
Tool for uploading articles to the server
Readme 55 KiB
Languages
Lua 89.6%
HTML 10.4%