marked 9.1.5 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/marked.cjs +7 -3
- package/lib/marked.cjs.map +1 -1
- package/lib/marked.d.cts +2 -2
- package/lib/marked.d.ts +2 -2
- package/lib/marked.esm.js +7 -3
- package/lib/marked.esm.js.map +1 -1
- package/lib/marked.umd.js +7 -3
- package/lib/marked.umd.js.map +1 -1
- package/man/marked.1 +1 -1
- package/marked.min.js +2 -2
- package/package.json +14 -17
package/lib/marked.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* marked
|
|
2
|
+
* marked v10.0.0 - a markdown parser
|
|
3
3
|
* Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed)
|
|
4
4
|
* https://github.com/markedjs/marked
|
|
5
5
|
*/
|
|
@@ -2056,11 +2056,9 @@
|
|
|
2056
2056
|
parse = this.#parseMarkdown(_Lexer.lex, _Parser.parse);
|
|
2057
2057
|
parseInline = this.#parseMarkdown(_Lexer.lexInline, _Parser.parseInline);
|
|
2058
2058
|
Parser = _Parser;
|
|
2059
|
-
parser = _Parser.parse;
|
|
2060
2059
|
Renderer = _Renderer;
|
|
2061
2060
|
TextRenderer = _TextRenderer;
|
|
2062
2061
|
Lexer = _Lexer;
|
|
2063
|
-
lexer = _Lexer.lex;
|
|
2064
2062
|
Tokenizer = _Tokenizer;
|
|
2065
2063
|
Hooks = _Hooks;
|
|
2066
2064
|
constructor(...args) {
|
|
@@ -2257,6 +2255,12 @@
|
|
|
2257
2255
|
this.defaults = { ...this.defaults, ...opt };
|
|
2258
2256
|
return this;
|
|
2259
2257
|
}
|
|
2258
|
+
lexer(src, options) {
|
|
2259
|
+
return _Lexer.lex(src, options ?? this.defaults);
|
|
2260
|
+
}
|
|
2261
|
+
parser(tokens, options) {
|
|
2262
|
+
return _Parser.parse(tokens, options ?? this.defaults);
|
|
2263
|
+
}
|
|
2260
2264
|
#parseMarkdown(lexer, parser) {
|
|
2261
2265
|
return (src, options) => {
|
|
2262
2266
|
const origOpt = { ...options };
|