Skip to content

Commit

Permalink
🎨 #1513
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Dec 13, 2023
1 parent a2434b5 commit 4f677e0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) `修复缺陷`

Expand Down
2 changes: 1 addition & 1 deletion demo/markdown/zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@Vanessa 通过 `@User` 可以在内容中提及用户,被提及的用户将会收到系统通知。

> NOTE:
>
>
> 1. @用户名之后需要有一个空格
> 2. 新手没有艾特的功能权限
Expand Down
11 changes: 8 additions & 3 deletions demo/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,24 @@ 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
}
Vditor.outlineRender(previewElement, outlineElement)
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) {
Expand Down
12 changes: 6 additions & 6 deletions src/js/lute/lute.min.js

Large diffs are not rendered by default.

0 comments on commit 4f677e0

Please sign in to comment.