Start flying section
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import rehypeImageCaption from "rehype-image-caption";
|
||||
import { QuartzTransformerPlugin } from "../types";
|
||||
|
||||
export const FigureCaptions: QuartzTransformerPlugin = () => {
|
||||
return {
|
||||
name: "FigureCaptions",
|
||||
htmlPlugins() {
|
||||
return [[rehypeImageCaption]]
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -149,6 +149,7 @@ declare module "vfile" {
|
||||
draft: boolean | string
|
||||
lang: string
|
||||
enableToc: string
|
||||
enableMeta: string
|
||||
cssclasses: string[]
|
||||
socialImage: string
|
||||
comments: boolean | string
|
||||
|
||||
@@ -11,3 +11,4 @@ export { SyntaxHighlighting } from "./syntax"
|
||||
export { TableOfContents } from "./toc"
|
||||
export { HardLineBreaks } from "./linebreaks"
|
||||
export { RoamFlavoredMarkdown } from "./roam"
|
||||
export { FigureCaptions } from "./captions"
|
||||
Reference in New Issue
Block a user