vuepress-plugin-figure-references
v2.1.0-alpha.3
Published
VuePress plugin for figure references
Downloads
41
Maintainers
Readme
vuepress-plugin-figure-references
VuePress plugin for figure referencing with markdown-it-figure-references.
Installation
yarn add vuepress-plugin-figure-references
or
npm install vuepress-plugin-figure-references
Usage
Enable plugin in .vuepress/config.js
module.exports = {
plugins: ["figure-references"],
};
or
module.exports = {
plugins: ["vuepress-plugin-figure-references"],
};
or
module.exports = {
plugins: [["figure-references", opts]],
};
The opts
object can contain:
| Name | Description | Default |
| --------- | ------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| wrap
| Wrap options. | see below |
| options
| markdown-it-figure-references configuration options. | see here |
The wrap
object can contain:
| Name | Description | Default |
| -------- | -------------- | ----------- |
| enable
| Wrap figure. | true
|
| tag
| Wrapper tag. | "div"
|
| class
| Wrapper class. | "wrapper"
|