소스 검색

:bug: fix https://github.com/Vanessa219/vditor/issues/1549

Vanessa 1 년 전
부모
커밋
1726ecebac
3개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      CHANGELOG.md
  2. 0 0
      src/js/lute/lute.min.js
  3. 1 1
      src/ts/export/index.ts

+ 1 - 0
CHANGELOG.md

@@ -14,6 +14,7 @@
 
 ### v3.9.9 / 2024-01
 
+* [导出 PDF 时主题错误](https://github.com/Vanessa219/vditor/issues/1549) `修复缺陷`
 * [改进表格中行内数学公式 `|` 的渲染](https://github.com/Vanessa219/vditor/issues/1550) `改进功能`
 * [wysiwyg 模式下通过输入框修改元素属性时触发 input](https://github.com/Vanessa219/vditor/issues/1542) `改进功能`
 * [自定义渲染器支持](https://github.com/Vanessa219/vditor/issues/1540) `引入特性`

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
src/js/lute/lute.min.js


+ 1 - 1
src/ts/export/index.ts

@@ -36,7 +36,7 @@ window.addEventListener("message", (e) => {
   Vditor.preview(document.getElementById('preview'), e.data, {
     cdn: "${vditor.options.cdn}",
     markdown: {
-      theme: "${vditor.options.preview.theme}"
+      theme: ${JSON.stringify(vditor.options.preview.theme)}
     },
     hljs: {
       style: "${vditor.options.preview.hljs.style}"

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.