Browse Source

:arrow_up:

Liyuan Li 5 years ago
parent
commit
efb3491f13
3 changed files with 4 additions and 4 deletions
  1. 1 1
      README.md
  2. 1 1
      src/ts/markdown/previewRender.ts
  3. 2 2
      types/index.d.ts

+ 1 - 1
README.md

@@ -250,7 +250,7 @@ Can be filled with element `id` or element itself` HTMLElement`
 | footnotes | Footnotes | true |
 | codeBlockPreview |Whether to render code blocks in wysiwyg and ir modes | true |
 | theme | Content Theme | 'light' |
-| setext | Whether to parse the setext header | true |
+| setext | Whether to parse the setext header | fa;se |
 | paragraphBeginningSpace | Two spaces before the paragraph | false |
 | sanitize | Use XSS | true |
 | listMarker | add data-marker attribute | false |

+ 1 - 1
src/ts/markdown/previewRender.ts

@@ -37,7 +37,7 @@ const mergeOptions = (options?: IPreviewOptions) => {
             listMarker: false,
             paragraphBeginningSpace: false,
             sanitize: true,
-            setext: true,
+            setext: false,
             theme: "light",
             toc: false,
         },

+ 2 - 2
types/index.d.ts

@@ -321,9 +321,9 @@ interface IMarkdownConfig {
     footnotes?: boolean;
     /** wysiwyg & ir 模式代码块是否渲染。默认值: true */
     codeBlockPreview: boolean;
-    /** 是否解析 setext 标题。默认值: true */
+    /** 是否解析 setext 标题。默认值: false */
     setext: boolean;
-    /** 是否启用过滤 XSS。默认值: false */
+    /** 是否启用过滤 XSS。默认值: true */
     sanitize: boolean;
     /** 内容主题。默认值:light */
     theme?: string;