Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gatsby-remark-fenced-divs
Advanced tools
Gatsby remark plugin for adding pandoc fenced_divs in markdown
Adds fencedDivs
blocks in markdown syntax tree produced by remark
, and
convert them to <div>
s in html
using
remark-fenced-divs.
This plugin aims to imitate the comportment of the pandoc extension
fenced_divs
You can create div
blocks using three colons as separator. The opening
fence should include at least one attribute used as class for the div.
npm install --save gatsby-remark-fenced-divs
Currently, the
remark-fenced-divs plugin don't
use any option as it only imitate the
pandoc
extension.
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
...
"gatsby-remark-fenced-divs"
...
],
},
},
];
Use the following Markdown syntax to create div
blocks in your file:
div
s pass single word attribute as a class for the div
::: my-class
Here is a paragraph.
And another.
:::::
HTML OUTPUT:
<div class="my-class">
<p>Here is a paragraph.</p>
<p>And another.</p>
</div>
div
s supports extended curly braces attributes::::: {#special .sidebar num=3}
Here is a paragraph.
And another.
:::::
HTML OUTPUT:
<div id="special" class="sidebar" data-num="3">
<p>Here is a paragraph.</p>
<p>And another.</p>
</div>
div
s can be nested:::: Warning ::::::
This is a warning.
::: Danger
This is a warning within a warning.
:::
::::::::::::::::::
HTML OUTPUT:
<div class="Warning">
<p>This is a warning.</p>
<div class="Danger">
<p>This is a warning within a warning.</p>
</div>
</div>
This will generate the following html
:
<div class="custom-block danger">
<div class="custom-block-body"><p>content</p></div>
</div>
<div class="custom-block info">
<div class="custom-block-heading">This is a title!</div>
<div class="custom-block-body"><p>content</p></div>
</div>
FAQs
Gatsby remark plugin for adding pandoc fenced_divs in markdown
We found that gatsby-remark-fenced-divs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.