Skip to content

A vscode-extension, Format the pictures of vuepress to support fancybox.

License

Notifications You must be signed in to change notification settings

xnng/vuepress-img-format

Repository files navigation

vuepress-img-format

简体中文

icons

This is a plug-in that allows vuepress to support image magnification.

And it needs to cooperate with fancybox.

How to use ?

Add fancybox to .vuepress/config.js

module.exports = {
    head: [
        // add jquert and fancybox
        ['script', { src: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.slim.min.js' }],
        ['script', { src: 'https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.2/jquery.fancybox.min.js' }],
        ['link', { rel: 'stylesheet', type: 'text/css', href: 'https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.2/jquery.fancybox.min.css' }]
    ],
    themeConfig: {
        // your config
    }
}

Open the command, imput img format or img reset format, the markdown of the picture will be formatted。

Or you can use shortcut keys:

Shortcut keys format reset format
Windows/Linux Ctrl + Shift +8 Ctrl + Shift + 8
Mac Cmd + Shift + 8 Cmd + Shift + 9

vuepress-img-format

Finally, you can see the effect.

effect

Enjoy it !

License

MIT

About

A vscode-extension, Format the pictures of vuepress to support fancybox.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published