Browse Source

:art: https://github.com/Vanessa219/vditor/issues/1513

Vanessa 1 year ago
parent
commit
4f677e00c7
4 changed files with 10 additions and 4 deletions
  1. 1 0
      CHANGELOG.md
  2. 1 1
      demo/markdown/zh_CN.md
  3. 8 3
      demo/render.js
  4. 0 0
      src/js/lute/lute.min.js

+ 1 - 0
CHANGELOG.md

@@ -14,6 +14,7 @@
 
 ### v3.9.7 / 2023-10
 
+* [改进带端口的超链接解析](https://github.com/Vanessa219/vditor/issues/1513) `改进功能`
 * [优化代码块复制功能的渲染性能](https://github.com/Vanessa219/vditor/pull/1502) `开发重构`
 * [tipPosition 设置在取消全屏后失效](https://github.com/Vanessa219/vditor/issues/1491) `修复缺陷`
 

+ 1 - 1
demo/markdown/zh_CN.md

@@ -22,7 +22,7 @@
 @Vanessa 通过 `@User` 可以在内容中提及用户,被提及的用户将会收到系统通知。
 
 > NOTE:
-> 
+>
 > 1. @用户名之后需要有一个空格
 > 2. 新手没有艾特的功能权限
 

+ 8 - 3
demo/render.js

@@ -20,11 +20,14 @@ const render = (fileName) => {
     fetch(`/demo/markdown/${fileName}.md`).then(response => response.text()).then(markdown => {
 
         Vditor.preview(previewElement, markdown, {
+            cdn: 'http://localhost:9000',
             markdown: {
                 toc: true, listStyle: fileName === 'cute-list',
-            }, speech: {
+            },
+            speech: {
                 enable: true,
-            }, anchor: 1, after() {
+            },
+            anchor: 1, after() {
                 if (window.innerWidth <= 768) {
                     return
                 }
@@ -32,7 +35,9 @@ const render = (fileName) => {
                 if (outlineElement.innerText.trim() !== '') {
                     outlineElement.style.display = 'block'
                 }
-            }, lazyLoadImage: 'https://unpkg.com/vditor/dist/images/img-loading.svg', renderers: {
+            },
+            lazyLoadImage: 'https://unpkg.com/vditor/dist/images/img-loading.svg',
+            renderers: {
                 renderHeading: (node, entering) => {
                     const id = Lute.GetHeadingID(node)
                     if (entering) {

File diff suppressed because it is too large
+ 0 - 0
src/js/lute/lute.min.js


Some files were not shown because too many files changed in this diff