1.0.0 • Published 12 months ago

hexo-relatived-img v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

hexo-relatived-img

LICENSE files

Renders local images of relative paths, compatible with vscode and hexo preview display

Installation

npm i hexo-relatived-img --save

Feautres

Use the markdown notation of the image using the vscode relative path, which will replace the relative path of the directory section when translating hexo.

file directory

|-- license 
| |-- da68b98e404578126b87c5afd9ba9bc3.png
|-- license.md  

Writing in vscode

![常见的开源许可证](./license/da68b98e404578126b87c5afd9ba9bc3.png)

After being compiled by hexo

<img src="https://isaaxite.github.io/blog/resources/da68b98e404578126b87c5afd9ba9bc3.png" alt="常见的开源许可证">

./license/ will be replaced with '', and then the markdown image will be handed over to hexo for compilation.

Options

Add or modify the following section to your root _config.yml file

relatived_img: true
  • relatived_img: Renders local images of relative paths.(default=true)

Licence

MIT @ isaaxite

1.0.0

12 months ago