@peaceroad/markdown-it-figure-with-p-caption 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -16,6 +16,7 @@ module.exports = function figure_with_caption_plugin(md, option) {
16
16
  oneImageWithoutCaption: false,
17
17
  iframeWithoutCaption: false,
18
18
  removeUnnumberedLabel: false,
19
+ removeUnnumberedLabelExceptMarks: [],
19
20
  multipleImages: true,
20
21
  styleProcess: true,
21
22
  };
@@ -428,6 +429,7 @@ module.exports = function figure_with_caption_plugin(md, option) {
428
429
  strongLabel: opt.strongLabel,
429
430
  jointSpaceUseHalfWidth: opt.jointSpaceUseHalfWidth,
430
431
  removeUnnumberedLabel: opt.removeUnnumberedLabel,
432
+ removeUnnumberedLabelExceptMarks: opt.removeUnnumberedLabelExceptMarks,
431
433
  });
432
434
  md.core.ruler.before('linkify', 'figure_with_caption', figureWithCaption);
433
435
  md.renderer.rules['fence_samp'] = function (tokens, idx, options, env, slf) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peaceroad/markdown-it-figure-with-p-caption",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "A markdown-it plugin. For a paragraph with only one image, a table or code block or blockquote, and by writing a caption paragraph immediately before or after, they are converted into the figure element with the figcaption element.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,6 +17,6 @@
17
17
  "markdown-it-attrs": "^4.1.4"
18
18
  },
19
19
  "dependencies": {
20
- "p7d-markdown-it-p-captions": "^0.9.1"
20
+ "p7d-markdown-it-p-captions": "^0.10.0"
21
21
  }
22
22
  }