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.
@nucleogenesis/markdownjs
Advanced tools
This is a work-in-progress - super simple Markdown parser. In order to find, match and replace Markdown with proper HTML, I am using regular expressions to match the expected format of the incoming Markdown.
Adding const parseMarkdownToHTML = require('./index');
where the ./index
is the path to the index.js
file included in this repo.
You can then use that function by giving it the raw Markdown text:
const parseMarkdownToHTML = require('./index');
const markdown = getElementById("markdown-input").value; // Get your markdown text - such as from an input or textarea.
const html = parseMarkdownToHTML(markdown); // Use the function to convert the Markdown to HTML
getElementById("converted-markdown").innerHTML = html; // Do things with it - such as applying it to a targeted area of your HTML.
FAQs
A simple markdown script in JavaScript.
We found that @nucleogenesis/markdownjs 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.