0.1.2 • Published 7 years ago
hexo-typora-image v0.1.2
hexo-typora-image
What hexo-typora-image solve?
Problem
Suppose you have content/image.png file and write  on some markdown file.
You can generate HTML via hexo generate cli command, but generated HTML refers duplicated image path(eg, content/content/image.png)
hexo-typora-image fixes it. (eg. content/image.png)
Prerequisition
It assumes you set post_asset_folder: true in _config.yml.
When you command hexo new post <title>, Hexo create <title>.md and asset directory named <title> like below.
.
├── [D] content
└── content.mdopen Typora with content.md and set typora-copy-images-to: {{ title }} into metadata(yaml).
---
<...>
typora-copy-images-to: {{ title }}
---drag and drop some image(ex image.png) into Typora(content.md).
Typora copy image to <title> directory automatically via typora-copy-images-to property.
Installation
Just install
npm install --save-dev hexo-typora-imageConfiguration
Zero configuration
LICENSE
MIT