
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
marksmithjs
Advanced tools
Marksmith is a lightweight npm library written in TypeScript for converting Markdown documents into HTML. It provides a simple and efficient way to seamlessly integrate Markdown parsing and HTML generation into your JavaScript or TypeScript projects.
Marksmith currently supports the elements mentioned below. With further releases, it'll support more markdown elements.
Note: Currently, there's only one level of parsing of bold, italic, code tags. Nested parsing will be supported in future versions.
#
, ##
, ###
, etc.)**text**
)*text*
)[text](url)
)
)> text
)---
)`code`
)You can install Marksmith via npm:
npm i marksmithjs
import { markdownToHtml } from 'marksmithjs';
const markdownText = '# Hello, World!\n\nThis is a *Markdown* example.';
try {
const htmlOutput = markdownToHtml(markdownText);
console.log(htmlOutput);
} catch (err) {
console.error("Markdown syntax not valid");
}
The output will be a div tag with all the markdown converted to HTML within the tag.
An error is thrown when the input markdown does not follow markdown rules such as incomplete bold / italic / code tags.
Contributions are welcome! Feel free to open an issue or submit a pull request.
FAQs
A library to convert markdown to HTML.
We found that marksmithjs 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.