Skip to content

Resolve image's location relative to vault's root. | 相对于当前笔记目录的根目录解析图片路径

License

Notifications You must be signed in to change notification settings

typora-community-plugin/typora-plugin-image-location

Repository files navigation

Typora Plugin Image Location

English | 简体中文

This a plugin based on typora-community-plugin for Typora.

Features

  • Resolve image's path relative to the vault's root.

    Example

    /assets/image.png{vault-path}/assets/image.png

  • Resolve Front Matter typora-root-url relative to the vault's root.

    Example

    typora-root-url: /assetstypora-root-url: {vault-path}/assets

    Then we can use the image like this: ![](image.png), it will be resolved to ![]({vault-path}/assets/image.png).

  • App Settings → Image → Image Upload Setting → Command, supports new placeholder ${vault} (it will be replaced to the vault's root path)

  • After an image is inserted, the image's absolute path will be simplified to relative path from vault root.

    Example

    {vault-path}/assets/image.png/assets/image.png

Preview

image from vault's root typora-root-url from vault's root

Install

  1. Install typora-community-plugin
  2. Open "Settings -> Plugin Marketplace" search "Image Location" then install it.

About

Resolve image's location relative to vault's root. | 相对于当前笔记目录的根目录解析图片路径

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published