mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -06:00
22 lines
546 B
TypeScript
22 lines
546 B
TypeScript
import { ExternalResourcePlugin } from "../../types"
|
|
import { JSResource } from "../../../util/resources"
|
|
// @ts-ignore
|
|
import calloutScript from "../../../components/scripts/callout.inline.ts"
|
|
|
|
export const ObsidianFlavoredMarkdownCallouts: ExternalResourcePlugin = () => {
|
|
return {
|
|
name: "ObsidianFlavoredMarkdownCallouts",
|
|
transformation() {
|
|
const js: JSResource[] = []
|
|
|
|
js.push({
|
|
script: calloutScript,
|
|
loadTime: "afterDOMReady",
|
|
contentType: "inline",
|
|
})
|
|
|
|
return { js }
|
|
},
|
|
}
|
|
}
|