@readme/markdown 11.8.0 → 11.8.1

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
@@ -35908,10 +35908,15 @@ function remarkGfm(options) {
35908
35908
 
35909
35909
  ;// ./node_modules/mdast-util-mdx-expression/lib/index.js
35910
35910
  /**
35911
- * @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle} from 'mdast-util-from-markdown'
35912
- * @import {MdxFlowExpression, MdxTextExpression} from 'mdast-util-mdx-expression'
35913
- * @import {Handle as ToMarkdownHandle, Options as ToMarkdownExtension, State} from 'mdast-util-to-markdown'
35914
- * @import {Parents} from 'mdast'
35911
+ * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
35912
+ * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
35913
+ * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
35914
+ *
35915
+ * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
35916
+ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
35917
+ *
35918
+ * @typedef {import('../index.js').MdxFlowExpression} MdxFlowExpression
35919
+ * @typedef {import('../index.js').MdxTextExpression} MdxTextExpression
35915
35920
  */
35916
35921
 
35917
35922
 
@@ -36008,24 +36013,10 @@ function exitMdxExpressionData(token) {
36008
36013
  /**
36009
36014
  * @type {ToMarkdownHandle}
36010
36015
  * @param {MdxFlowExpression | MdxTextExpression} node
36011
- * Node.
36012
- * @param {Parents | undefined} parent
36013
- * Parent, if any.
36014
- * @param {State} state
36015
- * Info passed around about the current state.
36016
- * @returns {string}
36017
- * Serialized markdown.
36018
36016
  */
36019
- function handleMdxExpression(node, parent, state) {
36017
+ function handleMdxExpression(node) {
36020
36018
  const value = node.value || ''
36021
- const result = state.indentLines(value, function (line, index, blank) {
36022
- // Tab-size to eat has to be the same as what we serialize as.
36023
- // While in some places in markdown that’s 4, in JS it’s more common as 2.
36024
- // Which is what’s also in `mdast-util-mdx-jsx`:
36025
- // <https://github.com/syntax-tree/mdast-util-mdx-jsx/blob/40b951b/lib/index.js#L52>
36026
- return (index === 0 || blank ? '' : ' ') + line
36027
- })
36028
- return '{' + result + '}'
36019
+ return '{' + value + '}'
36029
36020
  }
36030
36021
 
36031
36022
  ;// ./node_modules/character-entities-legacy/index.js
package/dist/main.node.js CHANGED
@@ -50076,10 +50076,15 @@ function remarkGfm(options) {
50076
50076
 
50077
50077
  ;// ./node_modules/mdast-util-mdx-expression/lib/index.js
50078
50078
  /**
50079
- * @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle} from 'mdast-util-from-markdown'
50080
- * @import {MdxFlowExpression, MdxTextExpression} from 'mdast-util-mdx-expression'
50081
- * @import {Handle as ToMarkdownHandle, Options as ToMarkdownExtension, State} from 'mdast-util-to-markdown'
50082
- * @import {Parents} from 'mdast'
50079
+ * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
50080
+ * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
50081
+ * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
50082
+ *
50083
+ * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
50084
+ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
50085
+ *
50086
+ * @typedef {import('../index.js').MdxFlowExpression} MdxFlowExpression
50087
+ * @typedef {import('../index.js').MdxTextExpression} MdxTextExpression
50083
50088
  */
50084
50089
 
50085
50090
 
@@ -50176,24 +50181,10 @@ function exitMdxExpressionData(token) {
50176
50181
  /**
50177
50182
  * @type {ToMarkdownHandle}
50178
50183
  * @param {MdxFlowExpression | MdxTextExpression} node
50179
- * Node.
50180
- * @param {Parents | undefined} parent
50181
- * Parent, if any.
50182
- * @param {State} state
50183
- * Info passed around about the current state.
50184
- * @returns {string}
50185
- * Serialized markdown.
50186
50184
  */
50187
- function handleMdxExpression(node, parent, state) {
50185
+ function handleMdxExpression(node) {
50188
50186
  const value = node.value || ''
50189
- const result = state.indentLines(value, function (line, index, blank) {
50190
- // Tab-size to eat has to be the same as what we serialize as.
50191
- // While in some places in markdown that’s 4, in JS it’s more common as 2.
50192
- // Which is what’s also in `mdast-util-mdx-jsx`:
50193
- // <https://github.com/syntax-tree/mdast-util-mdx-jsx/blob/40b951b/lib/index.js#L52>
50194
- return (index === 0 || blank ? '' : ' ') + line
50195
- })
50196
- return '{' + result + '}'
50187
+ return '{' + value + '}'
50197
50188
  }
50198
50189
 
50199
50190
  ;// ./node_modules/character-entities-legacy/index.js