forked from shadowwalker/next-pwa
-
Notifications
You must be signed in to change notification settings - Fork 27
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
28 changed files
with
459 additions
and
138 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
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
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
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,36 +1,7 @@ | ||
import rehypeHighlight from "rehype-highlight"; | ||
import rehypeSanitize, { defaultSchema } from "rehype-sanitize"; | ||
import type { PluggableList } from "unified"; | ||
|
||
import rehypeSlug from "./md-plugins/headings/sluggify.js"; | ||
|
||
export const rehypePlugins: PluggableList = [ | ||
[ | ||
rehypeSanitize, | ||
{ | ||
...defaultSchema, | ||
attributes: { | ||
...defaultSchema.attributes, | ||
code: [ | ||
...(defaultSchema.attributes?.code || []), | ||
// List of all allowed languages: | ||
[ | ||
"className", | ||
"language-js", | ||
"language-jsx", | ||
"language-ts", | ||
"language-tsx", | ||
"language-css", | ||
"language-md", | ||
"language-bash", | ||
"language-json", | ||
], | ||
], | ||
}, | ||
}, | ||
], | ||
rehypeHighlight, | ||
rehypeSlug, | ||
]; | ||
export const rehypePlugins: PluggableList = [rehypeSlug]; | ||
|
||
export const remarkPlugins: PluggableList = []; |
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.