fix style for <pre> element

This commit is contained in:
Xuan Son Nguyen 2024-11-07 07:36:40 -04:00
parent 85987af7e8
commit 4a0d28efb7

View file

@ -11,7 +11,10 @@
<style type="text/tailwindcss"> <style type="text/tailwindcss">
.markdown { .markdown {
h1, h2, h3, h4, h5, h6, ul, ol, li { all: revert; } h1, h2, h3, h4, h5, h6, ul, ol, li { all: revert; }
pre { @apply whitespace-pre-wrap; } pre {
@apply whitespace-pre-wrap my-4 rounded-lg p-2;
border: 1px solid currentColor;
}
/* TODO: fix markdown table */ /* TODO: fix markdown table */
} }
/* /*