hexo-markdown-image

1.0.5 • Public • Published

hexo-markdown-image

A Hexo plugin that can help you view images in both any Markdown editor and Hexo server.

npm install hexo-markdown-image

Suppose the _posts directory tree looks like this:

+---HelloWorld
|   +-- 1.png
|   +-- 2.png
|   +-- 3.png
+---HelloWorld.md

In the source code of the article, simply use ![](HelloWorld/1.png) ('HelloWorld' is the post assets folder name instead of article title) to insert images~

And the difference between this plugin and other image plugins is that it only replaces the image link of the current article, while keeping the other image links unchanged: ![](HelloWorld/1.png) -> ![](1.png), ![](/images/hello.png) unchanged.

Package Sidebar

Install

npm i hexo-markdown-image

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

2.05 kB

Total Files

3

Last publish

Collaborators

  • chen-qingyu