fix(md-embed): proper font size/weight inheritence

This commit is contained in:
hyper
2026-08-29 16:23:43 +08:00
parent 750af4a50c
commit 49260ae4f6
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ customElement("md-embed", { headingBase: 0 }, (props, { element }) => {
});
return (
<div class="md-embed not-prose">
<div class="md-embed">
<Show when={content.loading}>
<div class="text-gray-400 italic">...</div>
</Show>
+5
View File
@@ -84,6 +84,11 @@ icon.big .icon-label-stroke {
}
}
/* md-embed — inherit parent font size (e.g. card layer font-size) */
.md-embed .prose {
font-size: inherit;
}
/*alert*/
.markdown-alert-title {