hexo-relatived-img

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i hexo-relatived-img

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.24 kB

Total Files

5

Last publish

Collaborators

  • isaacgan