Skip to content

Commit

Permalink
🎨 Vditor 支持 支持类似 Typora 的及时渲染模式(保留 Markdown 标记符) Vanessa219/vditor#27
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 13, 2020
1 parent 55ff4f5 commit 9412e90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ type Options struct {
Terms map[string]string
// Vditor 所见即所得支持
VditorWYSIWYG bool
// Vditor 及时渲染支持
// Vditor 即时渲染支持
VditorIR bool
// InlineMathAllowDigitAfterOpenMarker 设置内联数学公式是否允许起始 $ 后紧跟数字 https://github.com/b3log/lute/issues/38
InlineMathAllowDigitAfterOpenMarker bool
Expand Down
4 changes: 2 additions & 2 deletions vditorir.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/88250/lute/util"
)

// SpinVditorIRDOM 自旋 Vditor Instant-Rendering DOM,用于及时渲染模式下的编辑
// SpinVditorIRDOM 自旋 Vditor Instant-Rendering DOM,用于即时渲染模式下的编辑
func (lute *Lute) SpinVditorIRDOM(ivHTML string) (ovHTML string) {
lute.VditorIR = true
lute.VditorWYSIWYG = true
Expand All @@ -42,7 +42,7 @@ func (lute *Lute) SpinVditorIRDOM(ivHTML string) (ovHTML string) {
return
}

// HTML2VditorIRDOM 将 HTML 转换为 Vditor Instant-Rendering DOM,用于及时渲染模式下粘贴
// HTML2VditorIRDOM 将 HTML 转换为 Vditor Instant-Rendering DOM,用于即时渲染模式下粘贴
func (lute *Lute) HTML2VditorIRDOM(sHTML string) (vHTML string) {
lute.VditorIR = true
lute.VditorWYSIWYG = true
Expand Down

0 comments on commit 9412e90

Please sign in to comment.