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.