fix vite and solid in dev
Inclusion of @astrojs/markdown-remark caused errors that cause solid and vite to fail to load in dev. It's stripped in build.
This commit is contained in:
parent
7f3b6795a6
commit
492200a42b
5 changed files with 7 additions and 18 deletions
|
@ -1,5 +1,3 @@
|
|||
import * as markdownUtils from "./markdown.ts";
|
||||
|
||||
import {
|
||||
// Flag,
|
||||
PowerCord,
|
||||
|
@ -75,12 +73,6 @@ export function groupRoutes(routes: RouteData[]): GroupedRoutes {
|
|||
}, defaultValue);
|
||||
}
|
||||
|
||||
export async function processQsMarkdown(
|
||||
markdown: string
|
||||
): Promise<string> {
|
||||
return await markdownUtils.processMarkdown(markdown);
|
||||
}
|
||||
|
||||
export function getQMLTypeLinkObject(unparsed: string) {
|
||||
const isLocal = unparsed.startsWith("MQS_") ? "local" : false;
|
||||
const isQT = unparsed.startsWith("MQT_") ? "qt" : false;
|
||||
|
|
|
@ -96,7 +96,6 @@ export const markdownConfig: AstroMarkdownOptions = {
|
|||
remarkPlugins: [[remarkAlert, { legacyTitle: true }]],
|
||||
rehypePlugins: [
|
||||
// FIXME: incompatible types between unified/Plugin and Astro/RehypePlugin
|
||||
// @ts-expect-error
|
||||
[sectionize as RehypePlugin, { idPropertyName: "id" }],
|
||||
rehypeRewriteTypelinks,
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue