1.0.10 • Published 2 years ago

load-markdown-image v1.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

中文文档

load-markdown-image

load-markdown-image

An npm package that replaces web images in markdown files with local images.

Introduction

Create a folder named images in the same directory as the MD file, download the web images from the MD file, and save them in that folder.

This npm package will modify the contents of the MD file, so be careful to back it up!

Installation

npm install -g load-markdwon-image
# or
yarn global add load-markdown-image

Usage

# Download the images in the test.md file
load-markdown-image test.md

# or
load-markdown-image "hello world.md"

# Download images of all MD files in the test folder
load-markdown-image test

# Change the name of the folder where the images are saved
load-markdown-image test.md --fileName=myImg

Features

  • Support for download images of a single MD file.
  • Support for download images of all MD files under a folder.
  • Support for absolute paths, relative paths.
  • Automatic recognition of image formats.
  • Path name contains spaces, please add double quotes, like load-markdown-image "hello world.md".

Preview

load-markdown-image

Development

npm run build
npm link
npm publish
1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago