Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.npmignore
README.md
hexo-typora-image.spec.ts
hexo-typora-image.ts
index.ts
package.json

README.md

hexo-typora-image

npm

What hexo-typora-image solve?

Problem

Suppose you have content/image.png file and write ![](content/image.png) 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.md

open Typora with content.md and set typora-copy-images-to: {{ title }} into metadata(yaml).

---
<...>
typora-copy-images-to: {{ title }}
---

DOC: when-insert-local-image

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-image

Configuration

Zero configuration


Other packages

LICENSE

MIT

You can’t perform that action at this time.