-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
83 additions
and
52 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...oader/src/remark/unusedDirectives/__tests__/__fixtures__/containerDirectives.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...rus-mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/directives.md
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/leafDirectives.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...mdx-loader/src/remark/unusedDirectives/__tests__/__fixtures__/textDirectives.md
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
34 changes: 24 additions & 10 deletions
34
...usaurus-mdx-loader/src/remark/unusedDirectives/__tests__/__snapshots__/index.test.ts.snap
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 |
---|---|---|
@@ -1,14 +1,28 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`directives remark plugin default behavior for custom keyword 1`] = ` | ||
"<p>Test directives</p> | ||
<p><div></div> <div></div></p> | ||
<p>Text<div></div></p> | ||
<p>Text:base</p> | ||
<p>Text: base</p> | ||
<div></div> | ||
<div><p>::::info <strong>Weather</strong> | ||
On nice days, you can enjoy skiing in the mountains.</p><p>:::danger <em>Storms</em> | ||
Take care of snowstorms...</p></div> | ||
<p>::::</p>" | ||
"<admonition type="danger"><p>Take care of snowstorms...</p></admonition> | ||
<div><p>unused directive content</p></div> | ||
<p>:::NotAContainerDirective with a phrase after</p> | ||
<p>:::</p> | ||
<p>Phrase before :::NotAContainerDirective</p> | ||
<p>:::</p>" | ||
`; | ||
|
||
exports[`directives remark plugin default behavior for custom keyword 2`] = ` | ||
[ | ||
[ | ||
"Unused Directives found: ", | ||
[ | ||
{ | ||
"name": "danger", | ||
"type": "containerDirective", | ||
}, | ||
{ | ||
"name": "unusedDirective", | ||
"type": "containerDirective", | ||
}, | ||
], | ||
], | ||
] | ||
`; |
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