Skip to main content

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

Project description

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

git clone https://github.com/crh19970307/mdul.git
cd mdul
python setup.py install

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mdul, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size mdul-0.0.2-py3.7.egg (5.6 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size mdul-0.0.2-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mdul-0.0.2.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page