fmt
Jacky Zhao
2023-08-12 aed3f5fccbe6a70186b339af4716980a5950b989
fmt
1 files modified
10 ■■■■■ changed files
quartz/plugins/transformers/ofm.ts 10 ●●●●● patch | view | raw | blame | history
quartz/plugins/transformers/ofm.ts
@@ -309,11 +309,8 @@
                const titleContent =
                  match.input.slice(calloutDirective.length).trim() || capitalize(calloutType)
                const titleNode: Paragraph = {
                  type: 'paragraph',
                  children: [
                    {type: 'text', value: titleContent + " "},
                    ...restChildren
                  ]
                  type: "paragraph",
                  children: [{ type: "text", value: titleContent + " " }, ...restChildren],
                }
                const title = mdastToHtml(titleNode)
@@ -352,7 +349,8 @@
                node.data = {
                  hProperties: {
                    ...(node.data?.hProperties ?? {}),
                    className: `callout ${collapse ? "is-collapsible" : ""} ${defaultState === "collapsed" ? "is-collapsed" : ""
                    className: `callout ${collapse ? "is-collapsible" : ""} ${
                      defaultState === "collapsed" ? "is-collapsed" : ""
                      }`,
                    "data-callout": calloutType,
                    "data-callout-fold": collapse,