@circlesac/mack 26.2.3 → 26.2.4
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/build/src/index.js +12 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/build/src/index.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
14
|
if (k2 === undefined) k2 = k;
|
|
4
15
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -79,7 +90,7 @@ function markdownToBlocks(body, options) {
|
|
|
79
90
|
var lexer, tokenizer, origInlineText, tokens, blocks;
|
|
80
91
|
return __generator(this, function (_a) {
|
|
81
92
|
(0, validation_1.validateInput)(body);
|
|
82
|
-
lexer = new marked_1.marked.Lexer();
|
|
93
|
+
lexer = new marked_1.marked.Lexer(__assign(__assign({}, marked_1.marked.defaults), { mangle: false }));
|
|
83
94
|
tokenizer = lexer.tokenizer;
|
|
84
95
|
origInlineText = tokenizer.inlineText;
|
|
85
96
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -50,7 +50,7 @@ export type { ListOptions, ParsingOptions } from "./types"
|
|
|
50
50
|
export async function markdownToBlocks(body: string, options: ParsingOptions = {}): Promise<(KnownBlock | TableBlock | RichTextBlock | VideoBlock)[]> {
|
|
51
51
|
validateInput(body)
|
|
52
52
|
|
|
53
|
-
const lexer = new marked.Lexer()
|
|
53
|
+
const lexer = new marked.Lexer({ ...marked.defaults, mangle: false })
|
|
54
54
|
|
|
55
55
|
// Override inlineText to prevent marked's default HTML entity escaping.
|
|
56
56
|
// We want raw text so that:
|