A markdown parser and compiler forked from marked, designed to be kramdown-compatible and support MathJax. The current stable version is 0.5.6, with no active development since 2016. It offers synchronous and asynchronous rendering, customizable renderers, and built-in highlighting integration. Unlike marked, kramed aims to align with the kramdown standard (common in Jekyll) and provides enhanced math support, making it suitable for documentation tools like GitBook. However, it is now largely superseded by modern markdown parsers such as marked (post-0.6) and markdown-it.
npm install kramedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a simple markdown string into HTML using kramed with common options. Uses ES module import.
Call setOptions before rendering, or pass options directly to kramed() instead.
Migrate to a maintained alternative like marked, markdown-it, or unified/remark.
Set sanitize: false if you want to allow raw HTML, but be aware of XSS risks.
Use the high-level kramed() function instead of calling lexer/parser directly.
Do not pass a callback unless you have set an async highlight function; otherwise use synchronous return.
Extend the Renderer class to handle math tokens, or use a dedicated math plugin.
Use 'import kramed from 'kramed';' or 'const kramed = require('kramed');'Ensure your bundler config uses esModuleInterop or use require().
Check that the argument to kramed() is a string, not a buffer or HTML.
Run 'npm install kramed' and verify package.json has 'kramed' in dependencies.