@peaceroad/markdown-it-figure-with-p-caption 0.9.0 → 0.9.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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -190,7 +190,7 @@ const figureWithCaption = (state, opt) => {
190
190
  }
191
191
  }
192
192
  checkToken = true
193
- caption.name = checkTags
193
+ caption.name = checkTags[cti]
194
194
  tagName = token.tag
195
195
  while (en < state.tokens.length) {
196
196
  if(state.tokens[en].type === tagName + '_close') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peaceroad/markdown-it-figure-with-p-caption",
3
- "version": "0.9.0",
3
+ "version": "0.9.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
  "type": "module",