misc: tweak markdown
This commit is contained in:
1 parent
e778450963
commit
4c2350280f
1 file changed
+4
-12
@@ -8,19 +8,19 @@
|
|||||||
export let source: string = ''
|
export let source: string = ''
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="break-words flex flex-col gap-3 leading-[22px] markdown">
|
<div class="break-words flex flex-col markdown gap-2">
|
||||||
{@html md.render(source)}
|
{@html md.render(source)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style lang="postcss">
|
<style lang="postcss">
|
||||||
.markdown :global(h1) {
|
.markdown :global(h1) {
|
||||||
@apply text-3xl font-bold mb-1 mt-3;
|
@apply text-3xl font-bold;
|
||||||
}
|
}
|
||||||
.markdown :global(h2) {
|
.markdown :global(h2) {
|
||||||
@apply text-2xl font-bold mb-1 mt-3;
|
@apply text-2xl font-bold;
|
||||||
}
|
}
|
||||||
.markdown :global(h3) {
|
.markdown :global(h3) {
|
||||||
@apply text-xl font-bold mb-1 mt-3;
|
@apply text-xl font-bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown :global(hr) {
|
.markdown :global(hr) {
|
||||||
@@ -37,12 +37,10 @@
|
|||||||
|
|
||||||
.markdown :global(ul) {
|
.markdown :global(ul) {
|
||||||
@apply list-disc pl-4;
|
@apply list-disc pl-4;
|
||||||
line-height: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown :global(ol) {
|
.markdown :global(ol) {
|
||||||
@apply list-decimal pl-4;
|
@apply list-decimal pl-4;
|
||||||
line-height: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown :global(li) {
|
.markdown :global(li) {
|
||||||
@@ -51,15 +49,9 @@
|
|||||||
|
|
||||||
.markdown :global(li > *) {
|
.markdown :global(li > *) {
|
||||||
@apply m-0 !important;
|
@apply m-0 !important;
|
||||||
line-height: 22px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown :global(blockquote) {
|
.markdown :global(blockquote) {
|
||||||
@apply border-l-2 border-black/20 dark:border-white/20 pl-2 my-1 h-max;
|
@apply border-l-2 border-black/20 dark:border-white/20 pl-2 my-1 h-max;
|
||||||
line-height: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown :global(blockquote > *) {
|
|
||||||
line-height: 22px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in new issue
Block a user