-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1244 from SahilKalra98/fixRemarkToc
Updates remark-toc, remark-gfm, and rehype-autolink-headings libraries
- Loading branch information
Showing
7 changed files
with
598 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Manual Mocking the rehype-autolink-headings library because our jest and typscript | ||
* configuration doesn't use esm modules yet. After the package update, | ||
* rehype-autolink-headings is a fully ESM module now and the reason this is being | ||
* manual mocked is because it is being mocked as a CommonJS module. | ||
* Here is the link: https://jestjs.io/docs/manual-mocks#mocking-node-modules | ||
*/ | ||
const autolink = () => { | ||
console.log('Manual Mocking of rehype-autolink-headings module') | ||
} | ||
|
||
module.exports = { | ||
autolink | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Manual Mocking the remark-gfm library because our jest and typscript | ||
* configuration doesn't use esm modules yet. After the package update, | ||
* remark-gfm is a fully ESM module now and the reason this is being | ||
* manual mocked is because it is being mocked as a CommonJS module. | ||
* Here is the link: https://jestjs.io/docs/manual-mocks#mocking-node-modules | ||
*/ | ||
const gfm = () => { | ||
console.log('Manual Mocking remark-gfm module') | ||
} | ||
|
||
module.exports = { | ||
gfm | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Manual Mocking the remark-toc library because our jest and typscript | ||
* configuration doesn't use esm modules yet. After the package update, | ||
* remark-toc is a fully ESM module now and the reason this is being | ||
* manual mocked is because it is being mocked as a CommonJS module. | ||
* Here is the link: https://jestjs.io/docs/manual-mocks#mocking-node-modules | ||
*/ | ||
const toc = () => { | ||
console.log('Manual Mocking of remark-toc module') | ||
} | ||
|
||
module.exports = { | ||
toc | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
84001ce
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: