Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove change in type of original Options from remark-rehype #6211

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/honest-files-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/markdown-remark': minor
---

remove change in type of original Options from remark-rehype
3 changes: 2 additions & 1 deletion packages/astro/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"declarationDir": "./dist",
"module": "ES2022",
"outDir": "./dist",
"target": "ES2021"
"target": "ES2021",
"preserveSymlinks": true
}
}
11 changes: 2 additions & 9 deletions packages/markdown/remark/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import type * as hast from 'hast';
import type * as mdast from 'mdast';
import type {
all as Handlers,
one as Handler,
Options as RemarkRehypeOptions,
} from 'remark-rehype';
import type { Options as RemarkRehypeOptions } from 'remark-rehype';
import type { ILanguageRegistration, IThemeRegistration, Theme } from 'shiki';
import type * as unified from 'unified';
import type { VFile } from 'vfile';
Expand All @@ -29,10 +25,7 @@ export type RehypePlugin<PluginParameters extends any[] = any[]> = unified.Plugi

export type RehypePlugins = (string | [string, any] | RehypePlugin | [RehypePlugin, any])[];

export type RemarkRehype = Omit<RemarkRehypeOptions, 'handlers' | 'unknownHandler'> & {
handlers?: typeof Handlers;
handler?: typeof Handler;
};
export type RemarkRehype = Omit<RemarkRehypeOptions, ''>

export interface ShikiConfig {
langs?: ILanguageRegistration[];
Expand Down