Testing things
Build Quartz site / build (push) Successful in 2m0s
Details
Build Quartz site / build (push) Successful in 2m0s
Details
This commit is contained in:
parent
ae4ebe253f
commit
9aa3590145
|
|
@ -51,7 +51,7 @@ const config: QuartzConfig = {
|
||||||
Plugin.Comments(),
|
Plugin.Comments(),
|
||||||
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
|
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
|
||||||
Plugin.GitHubFlavoredMarkdown(),
|
Plugin.GitHubFlavoredMarkdown(),
|
||||||
Plugin.CrawlLinks({ markdownLinkResolution: "relative" }),
|
Plugin.CrawlLinks({ markdownLinkResolution: "absolute" }),
|
||||||
Plugin.Latex({ renderEngine: "katex" }),
|
Plugin.Latex({ renderEngine: "katex" }),
|
||||||
Plugin.Description(),
|
Plugin.Description(),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { Element, Root as HtmlRoot } from "hast"
|
||||||
import { ReplaceFunction, findAndReplace as mdastFindReplace } from "mdast-util-find-and-replace"
|
import { ReplaceFunction, findAndReplace as mdastFindReplace } from "mdast-util-find-and-replace"
|
||||||
import { PluggableList } from "unified"
|
import { PluggableList } from "unified"
|
||||||
|
|
||||||
const commentRegex = new RegExp(/%%(.+)%%/, "g")
|
const commentRegex = /%%(.+?)%%/gs
|
||||||
|
|
||||||
export const Comments: QuartzTransformerPlugin<undefined> = () => {
|
export const Comments: QuartzTransformerPlugin<undefined> = () => {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue