Skip to content

Commit

Permalink
Fix markdown text in special tags
Browse files Browse the repository at this point in the history
Bold and titles weren't taking our text color updates, now they do

Related to Issue #44
  • Loading branch information
BobChao87 committed Jan 21, 2022
1 parent 0f4c43d commit f7b61fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions assets/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ hr {
display: flex;
justify-content: center;
}

.markdown-container {
*:not(a) {
color: theme.$text;
}
}
2 changes: 1 addition & 1 deletion components/element/Markdown.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<article class="content" v-html="$md.render(markdown)" />
<article class="content markdown-container" v-html="$md.render(markdown)" />
</template>

<script lang="ts">
Expand Down

0 comments on commit f7b61fd

Please sign in to comment.