remarkjs / react-markdown
Showing 1 of 3 files from the diff.

@@ -98,9 +98,10 @@
Loading
98 98
    .use(options.rehypePlugins || [])
99 99
    .use(filter, options)
100 100
101 +
  const contents = options.children || ''
101 102
  /** @type {Root} */
102 103
  // @ts-ignore we’ll throw if it isn’t a root next.
103 -
  const hastNode = processor.runSync(processor.parse(options.children || ''))
104 +
  const hastNode = processor.runSync(processor.parse(contents), {contents})
104 105
105 106
  if (hastNode.type !== 'root') {
106 107
    throw new TypeError('Expected a `root` node')
Files Coverage
src 100.00%
Project Totals (4 files) 100.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading