Change img alt attribute to figure caption paragraph for p7d-markdown-it-p-captions.
import setMarkdownImgAttrToPCaption from '@peaceroad/markdown-imgattr-to-pcaption'
setMarkdownImgAttrToPCaption(markdownCont)
[Input]
段落。段落。段落。

段落。段落。段落。
[Output]
段落。段落。段落。
図 キャプション

段落。段落。段落。
[Input]
段落。段落。段落。

段落。段落。段落。
[Output]
段落。段落。段落。
図 キャプション

段落。段落。段落。
[Input]
段落。段落。段落。

段落。段落。段落。
[Output]
段落。段落。段落。
図1 キャプション

段落。段落。段落。
[Input]
段落。段落。段落。

段落。段落。段落。
[Output]
段落。段落。段落。
図 キャプション

段落。段落。段落。
[Input]
段落。段落。段落。

段落。段落。段落。
[Output]
段落。段落。段落。
Figure. キャプション

段落。段落。段落。