mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
Prettier no
This commit is contained in:
parent
0abcd609cb
commit
adbc97c4f2
@ -108,10 +108,10 @@ export interface GoogleFontFile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const fontMimeMap: Record<string, string> = {
|
const fontMimeMap: Record<string, string> = {
|
||||||
"truetype": "ttf",
|
truetype: "ttf",
|
||||||
"woff": "woff",
|
woff: "woff",
|
||||||
"woff2": "woff2",
|
woff2: "woff2",
|
||||||
"opentype": "otf",
|
opentype: "otf",
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function processGoogleFonts(
|
export async function processGoogleFonts(
|
||||||
@ -121,7 +121,8 @@ export async function processGoogleFonts(
|
|||||||
processedStylesheet: string
|
processedStylesheet: string
|
||||||
fontFiles: GoogleFontFile[]
|
fontFiles: GoogleFontFile[]
|
||||||
}> {
|
}> {
|
||||||
const fontSourceRegex = /url\((https:\/\/fonts.gstatic.com\/.+(?:\/|(?:kit=))(.+?)[.&].+?)\)\sformat\('(\w+?)'\);/g
|
const fontSourceRegex =
|
||||||
|
/url\((https:\/\/fonts.gstatic.com\/.+(?:\/|(?:kit=))(.+?)[.&].+?)\)\sformat\('(\w+?)'\);/g
|
||||||
const fontFiles: GoogleFontFile[] = []
|
const fontFiles: GoogleFontFile[] = []
|
||||||
let processedStylesheet = stylesheet
|
let processedStylesheet = stylesheet
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user