remarkjs / react-markdown
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -282,7 +282,12 @@
Loading
282 282
    )
283 283
  }
284 284
285 -
  if (!basic && name === 'code' && parent.tagName !== 'pre') {
285 +
  if (
286 +
    !basic &&
287 +
    name === 'code' &&
288 +
    parent.type === 'element' &&
289 +
    parent.tagName !== 'pre'
290 +
  ) {
286 291
    properties.inline = true
287 292
  }
288 293
@@ -307,7 +312,7 @@
Loading
307 312
    )
308 313
  }
309 314
310 -
  if (!basic && name === 'li') {
315 +
  if (!basic && name === 'li' && parent.type === 'element') {
311 316
    const input = getInputElement(node)
312 317
    properties.checked = input ? Boolean(input.properties.checked) : null
313 318
    properties.index = getElementsBeforeCount(parent, node)
@@ -332,7 +337,7 @@
Loading
332 337
    }
333 338
  }
334 339
335 -
  if (!basic && name === 'tr') {
340 +
  if (!basic && name === 'tr' && parent.type === 'element') {
336 341
    properties.isHeader = Boolean(parent.tagName === 'thead')
337 342
  }
338 343
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