@readme/markdown 11.7.6 → 11.7.7

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/dist/main.js CHANGED
@@ -88457,9 +88457,12 @@ function extractMagicBlocks(markdown) {
88457
88457
  const blocks = [];
88458
88458
  let index = 0;
88459
88459
  const replaced = markdown.replace(MAGIC_BLOCK_REGEX, match => {
88460
- // Use backticks so it becomes a code span, preventing remarkParse from
88461
- // parsing special characters in the token as markdown syntax
88462
- const token = `\`__MAGIC_BLOCK_${index}__\``;
88460
+ /**
88461
+ * - Use backticks so it becomes a code span, preventing remarkParse from parsing
88462
+ * special characters in the token as markdown syntax
88463
+ * - Prepend a newline to the token to ensure it is parsed as a block level node
88464
+ */
88465
+ const token = `\n\`__MAGIC_BLOCK_${index}__\``;
88463
88466
  blocks.push({ token, raw: match });
88464
88467
  index += 1;
88465
88468
  return token;
package/dist/main.node.js CHANGED
@@ -108661,9 +108661,12 @@ function extractMagicBlocks(markdown) {
108661
108661
  const blocks = [];
108662
108662
  let index = 0;
108663
108663
  const replaced = markdown.replace(MAGIC_BLOCK_REGEX, match => {
108664
- // Use backticks so it becomes a code span, preventing remarkParse from
108665
- // parsing special characters in the token as markdown syntax
108666
- const token = `\`__MAGIC_BLOCK_${index}__\``;
108664
+ /**
108665
+ * - Use backticks so it becomes a code span, preventing remarkParse from parsing
108666
+ * special characters in the token as markdown syntax
108667
+ * - Prepend a newline to the token to ensure it is parsed as a block level node
108668
+ */
108669
+ const token = `\n\`__MAGIC_BLOCK_${index}__\``;
108667
108670
  blocks.push({ token, raw: match });
108668
108671
  index += 1;
108669
108672
  return token;