Gathering detailed insights and metrics for @geekeren/markdown-it-implicit-figures
Gathering detailed insights and metrics for @geekeren/markdown-it-implicit-figures
Gathering detailed insights and metrics for @geekeren/markdown-it-implicit-figures
Gathering detailed insights and metrics for @geekeren/markdown-it-implicit-figures
npm install @geekeren/markdown-it-implicit-figures
Typescript
Module System
Min. Node Version
Node Version
NPM Version
67.9
Supply Chain
90
Quality
75
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
847
Last Day
1
Last Week
2
Last Month
18
Last Year
108
56 Stars
72 Commits
16 Forks
4 Watching
4 Branches
8 Contributors
Minified
Minified + Gzipped
Latest Version
0.9.2
Package Id
@geekeren/markdown-it-implicit-figures@0.9.2
Unpacked Size
7.99 kB
Size
3.21 kB
File Count
5
NPM Version
6.4.1
Node Version
10.15.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-71.4%
2
Compared to previous week
Last month
260%
18
Compared to previous month
Last year
-26%
108
Compared to previous year
3
Render images occurring by itself in a paragraph as <figure><img ...></figure>
, similar to pandoc's implicit figures.
Example input:
1text with ![](img.png) 2 3![](fig.png) 4 5works with links too: 6 7[![](fig.png)](page.html)
Output:
1<p>text with <img src="img.png" alt=""></p> 2<figure><img src="fig.png" alt=""></figure> 3<p>works with links too:</p> 4<figure><a href="page.html"><img src="fig.png" alt=""></a></figure>
$ npm install --save markdown-it-implicit-figures
1var md = require('markdown-it')(); 2var implicitFigures = require('markdown-it-implicit-figures'); 3 4md.use(implicitFigures, { 5 dataType: false, // <figure data-type="image">, default: false 6 figcaption: false, // <figcaption>alternative text</figcaption>, default: false 7 tabindex: false, // <figure tabindex="1+n">..., default: false 8 link: false // <a href="img.png"><img src="img.png"></a>, default: false 9}); 10 11var src = 'text with ![](img.png)\n\n![](fig.png)\n\nanother paragraph'; 12var res = md.render(src); 13 14console.log(res);
dataType
: Set dataType
to true
to declare the data-type being wrapped,
e.g.: <figure data-type="image">
. This can be useful for applying special
styling for different kind of figures.
figcaption
: Set figcaption
to true
to put the alternative text in a
<figcaption>
-block after the image. E.g.: ![text](img.png)
renders to
1<figure> 2 <img src="img.png" alt="text"> 3 <figcaption>text</figcaption> 4</figure>
tabindex
: Set tabindex
to true
to add a tabindex
property to each
figure, beginning at tabindex="1"
and incrementing for each figure
encountered. Could be used with this css-trick,
which expands figures upon mouse-over.
link
: Put a link around the image if there is none yet.
copyAttrs
: Copy attributes matching (RegExp or string) copyAttrs
to figure
element.
MIT © Arve Seljebu
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
Found 5/22 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More