remarkjs / react-markdown

Compare 8ed18da ... +3 ... 456bb3b

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 2 of 5 files from the diff.

@@ -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
@@ -445,7 +450,7 @@
Loading
445 450
446 451
  try {
447 452
    style(value, iterator)
448 -
  } catch (/** @type {Error} */ _) {
453 +
  } catch (/** @type {unknown} */ _) {
449 454
    // Silent.
450 455
  }
451 456

@@ -8,8 +8,8 @@
Loading
8 8
const PropTypes = require('prop-types')
9 9
// @ts-ignore remove when typed
10 10
const html = require('property-information/html')
11 -
const filter = require('./rehype-filter')
12 -
const uriTransformer = require('./uri-transformer')
11 +
const filter = require('./rehype-filter.js')
12 +
const uriTransformer = require('./uri-transformer.js')
13 13
const childrenToReact = require('./ast-to-react.js').hastChildrenToReact
14 14
15 15
/**

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
src 100.00%
Project Totals (4 files) 100.00%
Loading