浏览代码

【优化】调整markdown 样式

cherishsince 1 年之前
父节点
当前提交
b6c654f039
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/MarkdownView/index.vue

+ 2 - 2
src/components/MarkdownView/index.vue

@@ -1,6 +1,6 @@
 
 
 <template>
 <template>
-  <div ref="contentRef" v-html="contentHtml"></div>
+  <div ref="contentRef" class="markdown-view" v-html="contentHtml"></div>
 </template>
 </template>
 
 
 <script setup lang="ts">
 <script setup lang="ts">
@@ -75,7 +75,7 @@ onMounted(async ()  => {
 </script>
 </script>
 
 
 
 
-<style scoped lang="scss">
+<style lang="scss">
 .markdown-view {
 .markdown-view {
   font-family: PingFang SC;
   font-family: PingFang SC;
   font-size: 0.95rem;
   font-size: 0.95rem;