mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
BREAKING CHANGE:
- minify ./lib/marked.esm.js and ./lib/marked.umd.js
- remove ./marked.min.js use ./lib/marked.umd.js instead
- remove ./lib/marked.cjs
- update minimum supported node version to 20 to support require('marked.esm.js'). see nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require
7 lines
207 B
JavaScript
Vendored
7 lines
207 B
JavaScript
Vendored
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
const { marked } = require('../lib/marked.esm.js');
|
|
|
|
if (!marked.parse('# test').includes('<h1')) {
|
|
throw new Error('Invalid markdown');
|
|
}
|