crh19970307 / mdul

An utility to upload local images in markdown to sm.ms and convert markdown file correspondingly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mdul

pypi Build Status license

It is safe to store images locally when writing markdown but it's not convenient compared to uploading images into cloud. mdul is a utility to upload local images in markdown to sm.ms and convert markdown file correspondingly. It will also convert markdown equation format.

Installation

pip install mdul

Usage

usage: mdul [-h] [--imgdir IMG_DIR] [--input INPUT_FILE]
            [--output OUTPUT_FILE] [--key KEY]

optional arguments:
  -h, --help            show this help message and exit
  --imgdir IMG_DIR      image folder,note.assets by default
  --input INPUT_FILE    file to be converted, note.md by default
  --output OUTPUT_FILE  output file name,note_upload.md by default
  --key KEY             Secret Token of sm.ms

Secret Token of sm.ms can also be specified in $HOME/.myconfig file such as:

[sm.ms]
    put your KEY here

About

An utility to upload local images in markdown to sm.ms and convert markdown file correspondingly.

License:MIT License


Languages

Language:Python 100.0%