Default to inline: false

This commit is contained in:
saberzero1 2024-10-30 15:06:58 +01:00
parent 35d619b272
commit 8a71036c50
No known key found for this signature in database
GPG Key ID: 41AEE99107640F10
3 changed files with 2 additions and 4 deletions

View File

@ -88,7 +88,6 @@ export const Latex: QuartzTransformerPlugin<Options> = (opts?: Options) => {
{
// base css
content: "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css",
inline: false,
},
],
js: [

View File

@ -34,7 +34,6 @@ export const Latex: QuartzTransformerPlugin<Partial<Options>> = (opts) => {
{
// base css
content: "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css",
inline: false,
},
],
js: [

View File

@ -18,7 +18,7 @@ export type JSResource = {
export type CSSResource = {
content: string
inline: boolean
inline?: boolean
spaPreserve?: boolean
}
@ -44,7 +44,7 @@ export function JSResourceToScriptElement(resource: JSResource, preserve?: boole
export function CSSResourceToStyleElement(resource: CSSResource, preserve?: boolean): JSX.Element {
const spaPreserve = preserve ?? resource.spaPreserve
if (resource.inline) {
if (resource.inline ?? false) {
return <style>{resource.content}</style>
} else {
return (