mirror of
https://github.com/quartz-community/content-page.git
synced 2026-07-22 02:50:24 +00:00
feat: wrap content in .markdown-preview-view and .markdown-rendered for Obsidian theme compat
This commit is contained in:
parent
74691eb787
commit
425e7ef7c3
5 changed files with 9 additions and 5 deletions
2
dist/components/index.js
vendored
2
dist/components/index.js
vendored
|
|
@ -2125,7 +2125,7 @@ var ContentBody_default = (() => {
|
|||
const frontmatter = fileData?.frontmatter;
|
||||
const classes = frontmatter?.cssclasses ?? [];
|
||||
const classString = ["popover-hint", ...classes].join(" ");
|
||||
return /* @__PURE__ */ jsx("article", { class: classString, children: content });
|
||||
return /* @__PURE__ */ jsx("article", { class: classString, children: /* @__PURE__ */ jsx("div", { class: "markdown-preview-view markdown-rendered", children: content }) });
|
||||
};
|
||||
return ContentBody;
|
||||
});
|
||||
|
|
|
|||
2
dist/components/index.js.map
vendored
2
dist/components/index.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js
vendored
2
dist/index.js
vendored
|
|
@ -2125,7 +2125,7 @@ var ContentBody_default = (() => {
|
|||
const frontmatter = fileData?.frontmatter;
|
||||
const classes = frontmatter?.cssclasses ?? [];
|
||||
const classString = ["popover-hint", ...classes].join(" ");
|
||||
return /* @__PURE__ */ jsx("article", { class: classString, children: content });
|
||||
return /* @__PURE__ */ jsx("article", { class: classString, children: /* @__PURE__ */ jsx("div", { class: "markdown-preview-view markdown-rendered", children: content }) });
|
||||
};
|
||||
return ContentBody;
|
||||
});
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -20,7 +20,11 @@ export default (() => {
|
|||
const classes = frontmatter?.cssclasses ?? [];
|
||||
const classString = ["popover-hint", ...classes].join(" ");
|
||||
|
||||
return <article class={classString}>{content}</article>;
|
||||
return (
|
||||
<article class={classString}>
|
||||
<div class="markdown-preview-view markdown-rendered">{content}</div>
|
||||
</article>
|
||||
);
|
||||
};
|
||||
|
||||
return ContentBody;
|
||||
|
|
|
|||
Loading…
Reference in a new issue