Van 5 years ago
parent
commit
d71c48fb67
1 changed files with 5 additions and 0 deletions
  1. 5 0
      demo/index.js

+ 5 - 0
demo/index.js

@@ -5,6 +5,11 @@ window.vditor = new Vditor('vditor', {
   debugger: true,
   typewriterMode: true,
   placeholder: 'placeholder',
+  preview: {
+    markdown: {
+      toc: true,
+    },
+  },
   counter: 100,
   height: 500,
   hint: {