mirror of https://github.com/logos-co/roadmap.git
fmt
This commit is contained in:
parent
c55d54f068
commit
aed3f5fccb
|
@ -309,11 +309,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
|
||||||
const titleContent =
|
const titleContent =
|
||||||
match.input.slice(calloutDirective.length).trim() || capitalize(calloutType)
|
match.input.slice(calloutDirective.length).trim() || capitalize(calloutType)
|
||||||
const titleNode: Paragraph = {
|
const titleNode: Paragraph = {
|
||||||
type: 'paragraph',
|
type: "paragraph",
|
||||||
children: [
|
children: [{ type: "text", value: titleContent + " " }, ...restChildren],
|
||||||
{type: 'text', value: titleContent + " "},
|
|
||||||
...restChildren
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
const title = mdastToHtml(titleNode)
|
const title = mdastToHtml(titleNode)
|
||||||
|
|
||||||
|
@ -352,7 +349,8 @@ export const ObsidianFlavoredMarkdown: QuartzTransformerPlugin<Partial<Options>
|
||||||
node.data = {
|
node.data = {
|
||||||
hProperties: {
|
hProperties: {
|
||||||
...(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": calloutType,
|
||||||
"data-callout-fold": collapse,
|
"data-callout-fold": collapse,
|
||||||
|
|
Loading…
Reference in New Issue