syntax-tree / mdast-util-to-markdown

Compare 6b7b1ef ... +2 ... 407af18


@@ -14,7 +14,7 @@
Loading
14 14
export function containerPhrasing(parent, context, safeOptions) {
15 15
  const indexStack = context.indexStack
16 16
  const children = parent.children || []
17 -
  /** @type {Array.<string>} */
17 +
  /** @type {Array<string>} */
18 18
  const results = []
19 19
  let index = -1
20 20
  let before = safeOptions.before

@@ -13,7 +13,7 @@
Loading
13 13
export function containerFlow(parent, context) {
14 14
  const indexStack = context.indexStack
15 15
  const children = parent.children || []
16 -
  /** @type {Array.<string>} */
16 +
  /** @type {Array<string>} */
17 17
  const results = []
18 18
  let index = -1
19 19

@@ -3,7 +3,7 @@
Loading
3 3
 */
4 4
5 5
/**
6 -
 * @param {Array.<string>} stack
6 +
 * @param {Array<string>} stack
7 7
 * @param {Unsafe} pattern
8 8
 * @returns {boolean}
9 9
 */
@@ -15,7 +15,7 @@
Loading
15 15
}
16 16
17 17
/**
18 -
 * @param {Array.<string>} stack
18 +
 * @param {Array<string>} stack
19 19
 * @param {Unsafe['inConstruct']} list
20 20
 * @param {boolean} none
21 21
 * @returns {boolean}

@@ -17,7 +17,7 @@
Loading
17 17
  'titleApostrophe'
18 18
]
19 19
20 -
/** @type {Array.<Unsafe>} */
20 +
/** @type {Array<Unsafe>} */
21 21
export const unsafe = [
22 22
  {character: '\t', after: '[\\r\\n]', inConstruct: 'phrasing'},
23 23
  {character: '\t', before: '[\\r\\n]', inConstruct: 'phrasing'},

@@ -9,14 +9,14 @@
Loading
9 9
/**
10 10
 * @param {Context} context
11 11
 * @param {string|null|undefined} input
12 -
 * @param {SafeOptions & {encode?: Array.<string>}} config
12 +
 * @param {SafeOptions & {encode?: Array<string>}} config
13 13
 * @returns {string}
14 14
 */
15 15
export function safe(context, input, config) {
16 16
  const value = (config.before || '') + (input || '') + (config.after || '')
17 -
  /** @type {Array.<number>} */
17 +
  /** @type {Array<number>} */
18 18
  const positions = []
19 -
  /** @type {Array.<string>} */
19 +
  /** @type {Array<string>} */
20 20
  const result = []
21 21
  /** @type {Record<number, {before: boolean, after: boolean}>} */
22 22
  const infos = {}
@@ -129,9 +129,9 @@
Loading
129 129
 */
130 130
function escapeBackslashes(value, after) {
131 131
  const expression = /\\(?=[!-/:-@[-`{-~])/g
132 -
  /** @type {Array.<number>} */
132 +
  /** @type {Array<number>} */
133 133
  const positions = []
134 -
  /** @type {Array.<string>} */
134 +
  /** @type {Array<string>} */
135 135
  const results = []
136 136
  const whole = value + after
137 137
  let index = -1

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
lib 100.00%
index.js 100.00%
Project Totals (46 files) 100.00%
Loading