diff --git a/__tests__/__snapshots__/bin-readme.js.snap b/__tests__/__snapshots__/bin-readme.js.snap index f82e9545f..0ef6127c8 100644 --- a/__tests__/__snapshots__/bin-readme.js.snap +++ b/__tests__/__snapshots__/bin-readme.js.snap @@ -10,8 +10,10 @@ exports[`readme autodetection of different filenames updates readme.markdown 1`] ### Table of Contents - [foo](#foo) + - [Parameters](#parameters) - [bar](#bar) + - [Parameters](#parameters-1) ## foo @@ -46,8 +48,10 @@ exports[`readme command --readme-file 1`] = ` ### Table of Contents - [foo](#foo) + - [Parameters](#parameters) - [bar](#bar) + - [Parameters](#parameters-1) ## foo @@ -82,8 +86,10 @@ exports[`readme command updates README.md 1`] = ` ### Table of Contents - [foo](#foo) + - [Parameters](#parameters) - [bar](#bar) + - [Parameters](#parameters-1) ## foo diff --git a/__tests__/__snapshots__/bin.js.snap b/__tests__/__snapshots__/bin.js.snap index 7d7219631..16dc42fb0 100644 --- a/__tests__/__snapshots__/bin.js.snap +++ b/__tests__/__snapshots__/bin.js.snap @@ -1858,27 +1858,35 @@ exports[`build --document-exported 1`] = ` ### Table of Contents - [z][1] + - [zMethod][2] - [x][3] + - [Parameters][4] - [Class][5] + - [Parameters][6] - [classMethod][7] - [classGetter][8] - [classSetter][9] + - [Parameters][10] - [staticMethod][11] - [staticGetter][12] - [staticSetter][13] + - [Parameters][14] - [T5][15] - [y2Default][16] - [y4][17] + - [Parameters][18] - [object][19] + - [method][20] - [getter][21] - [setter][22] + - [Parameters][23] - [prop][24] - [func][25] @@ -1888,12 +1896,16 @@ exports[`build --document-exported 1`] = ` - [T2][29] - [T4][30] - [f4][31] + - [Parameters][32] - [o1][33] + - [om1][34] - [f5][35] + - [Parameters][36] - [o2][37] + - [om2][38] ## z diff --git a/__tests__/__snapshots__/test.js.snap b/__tests__/__snapshots__/test.js.snap index 2c541ae9a..002ef2469 100644 --- a/__tests__/__snapshots__/test.js.snap +++ b/__tests__/__snapshots__/test.js.snap @@ -1387,7 +1387,7 @@ exports[`html nested.input.js 1`] = ` - -alpha.1 | Documentation + | Documentation @@ -1400,7 +1400,7 @@ exports[`html nested.input.js 1`] = `

documentation

-
9.0.0-alpha.1
+
r.contents .toString() - .replace(/documentation \d+\.\d+\.\d+/g, '') - .replace(/\d+\.\d+\.\d+<\/code>/g, '') + .replace(/documentation \d+\.\d+\.\d+(-\w+(\.\d+)?)?/g, '') + .replace(/\d+\.\d+\.\d+(-\w+(\.\d+)?)?<\/code>/g, '') ) .join('\n'); expect(clean).toMatchSnapshot(); diff --git a/src/parsers/parse_to_ast.js b/src/parsers/parse_to_ast.js index b9d15455a..a1d791802 100644 --- a/src/parsers/parse_to_ast.js +++ b/src/parsers/parse_to_ast.js @@ -19,7 +19,8 @@ const opts = { 'functionSent', 'jsx', 'objectRestSpread', - 'dynamicImport' + 'dynamicImport', + 'logicalAssignment' ] };