Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
assemble-markdown-data
Advanced tools
An Assemble plugin for automatic parsing of markdown in data.
An Assemble plugin for automatic parsing of markdown in data.
First, setup a project with Grunt and Assemble.
Then install the plugin:
npm install --save-dev assemble-markdown-data
Add the plugin to your Grunt assemble config:
assemble: {
options: {
plugins: [ 'assemble-markdown-data' ]
},
// ...
},
For any data value you want to be parsed as markdown,
define it as an object with markdown
key whose value is a markdown string.
Before rendering, this object will be replaced by the HTML that results from parsing the markdown.
# profile.yml
name: Anders D. Johnson
about:
markdown: |
My favorite things to do are:
* Writing code
* Especially JavaScript
* Browsing [GitHub](https://github.com)
age: 23
Resulting JavaScript object:
{
"name": "Anders D. Johnson",
"about": "<p>My favorite things to do are:</p><ul><li>Writing code<ul><li>Especially JavaScript</li></ul></li><li>Browsing <a href=\"https://github.com\">GitHub</a></li></ul>",
"age": 23
}
FAQs
An Assemble plugin for automatic parsing of markdown in data.
We found that assemble-markdown-data 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.