rehypejs / rehype
Showing 2 of 3 files from the diff.

@@ -39,7 +39,7 @@
Loading
39 39
/** @type {import('unified').Plugin<[Options?] | void[], string, Root>} */
40 40
export default function rehypeParse(options) {
41 41
  const processorSettings = /** @type {Options} */ (this.data('settings'))
42 -
  const settings = Object.assign({}, options, processorSettings)
42 +
  const settings = Object.assign({}, processorSettings, options)
43 43
44 44
  Object.assign(this, {Parser: parser})
45 45

@@ -9,7 +9,7 @@
Loading
9 9
/** @type {import('unified').Plugin<[Options]|void[], Node, string>} */
10 10
export default function rehypeStringify(config) {
11 11
  const processorSettings = /** @type {Options} */ (this.data('settings'))
12 -
  const settings = Object.assign({}, config, processorSettings)
12 +
  const settings = Object.assign({}, processorSettings, config)
13 13
14 14
  Object.assign(this, {Compiler: compiler})
15 15
Files Coverage
packages 100.00%
Project Totals (7 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