Skip to content

Commit

Permalink
fix: 🐛 Solve some issues with markdown preview (#470)
Browse files Browse the repository at this point in the history
* fix: 🐛 Solve some issues with markdown preview

* fix: 🩹 Change background color of code block

* fix: 🐛 Change background color of markdown editor
  • Loading branch information
albinmedoc committed Aug 1, 2024
1 parent c850c8e commit 2051990
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions apps/wizarr-frontend/src/assets/scss/md-editor-v3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@
--md-theme-quote-border: 5px solid rgb(208, 49, 67) !important;
--md-theme-link-color: rgb(208, 49, 67) !important;
--md-theme-link-hover-color: rgb(208, 49, 67) !important;
--md-theme-code-inline-color: rgb(208, 49, 67) !important;
--md-theme-code-inline-bg-color: rgba(208, 49, 67, 0.1) !important;
--md-theme-code-block-bg-color: rgb(17, 24, 39) !important;
}

.md-editor.md-editor-dark, .md-editor-modal-container[data-theme='dark'] {
--md-color: #fff;
--md-bk-color: rgb(55, 65, 81);
--md-scrollbar-bg-color: rgb(55, 65, 81);
}

.md-editor.md-editor-previewOnly {
background-color: inherit !important;
}

.md-editor-preview {
Expand All @@ -10,21 +23,24 @@
h1, h2, h3, h4, h5, h6 {
word-break: normal !important;
}
h1, h2, h3, h4, h5, h6 {
> h1, > h2, > h3, > h4, > h5, > h6 {
&:first-child {
margin-top: 0;
}
}
}

.md-editor.md-editor-dark, .md-editor-modal-container[data-theme='dark'] {
--md-color: #fff;
}
.md-editor-preview {
ol {
list-style-type: decimal;
}

.md-editor.md-editor-previewOnly {
background-color: inherit !important;
ul {
list-style-type: disc;
}
}


.md-editor.md-editor-previewOnly .md-editor-preview-wrapper {
padding: inherit !important;
}

0 comments on commit 2051990

Please sign in to comment.