@circlesac/mack 26.2.0 → 26.2.2

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.
@@ -76,14 +76,9 @@ __createBinding(exports, errors_1, "ValidationError");
76
76
  function markdownToBlocks(body, options) {
77
77
  if (options === void 0) { options = {}; }
78
78
  return __awaiter(this, void 0, void 0, function () {
79
- var replacements, lexer, tokenizer, origInlineText, tokens, blocks;
79
+ var lexer, tokenizer, origInlineText, tokens, blocks;
80
80
  return __generator(this, function (_a) {
81
81
  (0, validation_1.validateInput)(body);
82
- replacements = {
83
- "&": "&",
84
- "<": "&lt;",
85
- ">": "&gt;"
86
- };
87
82
  lexer = new marked_1.marked.Lexer();
88
83
  tokenizer = lexer.tokenizer;
89
84
  origInlineText = tokenizer.inlineText;
@@ -94,8 +89,8 @@ function markdownToBlocks(body, options) {
94
89
  return undefined;
95
90
  }
96
91
  var raw = cap[0];
97
- var text = raw.replace(/[&<>]/g, function (char) { return replacements[char]; });
98
- return { type: "text", raw: raw, text: text };
92
+ // Return raw text without escaping (escaping happens downstream in parseMrkdwn)
93
+ return { type: "text", raw: raw, text: raw };
99
94
  };
100
95
  tokens = lexer.lex(body);
101
96
  // Restore the original inlineText to avoid polluting marked.defaults