@peaceroad/markdown-it-figure-with-p-caption 0.3.2 → 0.3.3

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/package.json +2 -2
  2. package/test/examples.txt +40 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peaceroad/markdown-it-figure-with-p-caption",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
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": {
@@ -16,6 +16,6 @@
16
16
  "markdown-it": "^12.1.0"
17
17
  },
18
18
  "dependencies": {
19
- "p7d-markdown-it-p-captions": "^0.6.2"
19
+ "p7d-markdown-it-p-captions": "^0.6.3"
20
20
  }
21
21
  }
package/test/examples.txt CHANGED
@@ -449,3 +449,43 @@ A paragraph.
449
449
  </code></pre>
450
450
  </figure>
451
451
  <p>A paragraph.</p>
452
+
453
+ [Markdown]
454
+ A paragraph.
455
+
456
+ Code. "filename.js"
457
+
458
+ ```js
459
+ console.log('Nyaan!');
460
+ ```
461
+
462
+ A paragraph.
463
+
464
+ [HTML]
465
+ <p>A paragraph.</p>
466
+ <figure class="f-pre-code" role="doc-example">
467
+ <figcaption><span class="f-pre-code-label">Code<span class="f-pre-code-label-joint">.</span></span> <strong class="f-pre-code-filename">filename.js</strong></figcaption>
468
+ <pre><code class="language-js">console.log('Nyaan!');
469
+ </code></pre>
470
+ </figure>
471
+ <p>A paragraph.</p>
472
+
473
+ [Markdown]
474
+ A paragraph.
475
+
476
+ Code. **filename.js**
477
+
478
+ ```js
479
+ console.log('Nyaan!');
480
+ ```
481
+
482
+ A paragraph.
483
+
484
+ [HTML]
485
+ <p>A paragraph.</p>
486
+ <figure class="f-pre-code" role="doc-example">
487
+ <figcaption><span class="f-pre-code-label">Code<span class="f-pre-code-label-joint">.</span></span> <strong class="f-pre-code-filename">filename.js</strong></figcaption>
488
+ <pre><code class="language-js">console.log('Nyaan!');
489
+ </code></pre>
490
+ </figure>
491
+ <p>A paragraph.</p>