-
Notifications
You must be signed in to change notification settings - Fork 3
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
15 changed files
with
56 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,19 +8,19 @@ export * as unified from 'npm:[email protected]' | |
|
||
export { default as readingTime } from 'https://esm.sh/[email protected]?bundle' | ||
|
||
export { default as rehypeMinifyWhitespace } from 'npm:rehype-[email protected].0' | ||
export { default as rehypeExtractToc } from 'npm:@stefanprobst/rehype-[email protected].0' | ||
export { default as rehypeCodeTitles } from 'npm:[email protected]' | ||
export { default as rehypeExternalLinks } from 'npm:[email protected]' | ||
export { default as rehypeExtractToc } from 'npm:@stefanprobst/[email protected]' | ||
export { default as rehypePrismPlus } from 'npm:[email protected]' | ||
export { default as rehypeMinifyWhitespace } from 'npm:[email protected]' | ||
export { default as rehypePrismDiff } from 'npm:[email protected]' | ||
export { default as rehypePrismPlus } from 'npm:[email protected]' | ||
|
||
export { slug } from 'npm:[email protected]' | ||
export { toString } from 'npm:[email protected]' | ||
export { findAfter } from 'npm:[email protected]' | ||
export { CONTINUE, EXIT, SKIP, visit } from 'npm:[email protected]' | ||
export { toString } from 'npm:[email protected]' | ||
|
||
export { default as rehypeImgSize } from 'npm:[email protected]' | ||
export type { Test } from 'npm:[email protected]' | ||
export { default as rehypeCopyCode } from './rehype/rehypeCopyCode.ts' | ||
export { default as rehypeSlugAnchorSectionize } from './rehype/slug.ts' | ||
export type { Test } from 'npm:[email protected]' | ||
export { default as rehypeImgSize } from 'npm:[email protected]' |
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,3 +1,4 @@ | ||
import { dirname, fromFileUrl } from 'https://deno.land/[email protected]/path/mod.ts' | ||
import { | ||
rehypeCodeTitles, | ||
rehypeCopyCode, | ||
|
@@ -9,7 +10,6 @@ import { | |
rehypePrismPlus, | ||
rehypeSlugAnchorSectionize, | ||
} from '../deps.ts' | ||
import { dirname, fromFileUrl } from 'https://deno.land/[email protected]/path/mod.ts' | ||
|
||
const __dirname = dirname(fromFileUrl(import.meta.url)) | ||
|
||
|
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,5 +1,5 @@ | ||
import type { Element, Root } from 'npm:@types/[email protected]' | ||
import { unified, visit } from '#plugins/unified/deps.ts' | ||
import type { Element, Root } from 'npm:@types/[email protected]' | ||
|
||
const rehypeCopyCode: unified.Plugin<[], Root> = () => { | ||
return (tree: Root) => { | ||
|
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,3 +1,4 @@ | ||
import type { Element, Root } from 'npm:@types/[email protected]' | ||
import { | ||
findAfter, | ||
slug, | ||
|
@@ -6,7 +7,6 @@ import { | |
unified, | ||
visit, | ||
} from '../deps.ts' | ||
import type { Element, Root } from 'npm:@types/[email protected]' | ||
|
||
export interface RehypeSlugAnchorSectionizeOptions { | ||
/** The heading level depth to sectionize. defaults to `3` */ | ||
|
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,4 +1,4 @@ | ||
import { ScriptsConfiguration } from 'https://deno.land/x/[email protected]/mod.ts' | ||
import type { ScriptsConfiguration } from 'https://deno.land/x/[email protected]/mod.ts' | ||
|
||
export default <ScriptsConfiguration> { | ||
scripts: { | ||
|
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,5 +1,5 @@ | ||
export * from './capitalize.ts' | ||
export * from './getPaginationPages.ts' | ||
export * from './isEmptyArray.ts' | ||
export * from './truncateString.ts' | ||
export * from './isString.ts' | ||
export * from './truncateString.ts' |