Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

移除格式化按钮 #529

Closed
Vanessa219 opened this issue Jul 2, 2020 · 6 comments
Closed

移除格式化按钮 #529

Vanessa219 opened this issue Jul 2, 2020 · 6 comments
Assignees
Milestone

Comments

@Vanessa219
Copy link
Owner

sv 模式已经修改为变输入边格式化了,因此不再需要工具栏上的格式化按钮

@Vanessa219 Vanessa219 self-assigned this Jul 2, 2020
@Vanessa219 Vanessa219 added this to the 3.3 milestone Jul 2, 2020
@DevSum
Copy link

DevSum commented Dec 15, 2021

请问如何关掉格式化功能呢?有配置项可以控制吗 @Vanessa219

@88250
Copy link
Collaborator

88250 commented Dec 15, 2021

@DevSum 关闭不了,输入的时候需要做解析,解析过程进行了格式化。

@DevSum
Copy link

DevSum commented Dec 15, 2021

也就是说,例如:
image
被自动格式化为
image
(去掉了`yarn`前面的空格)这样是无法避免的吗

@88250
Copy link
Collaborator

88250 commented Dec 15, 2021

@DevSum 目前来说是的,如果需要改变的话得改一下 Lute 的代码:https://github.com/88250/lute/blob/6015e5d898c2358ec00f13b74f51200ace027584/render/vditor_sv_renderer.go#L913

@shuzijun
Copy link

@DevSum 关闭不了,输入的时候需要做解析,解析过程进行了格式化。

@88250 有方案可以只格式化编辑的区域么,而不是对整个内容格式化,相关issues: shuzijun/markdown-editor#69

@88250
Copy link
Collaborator

88250 commented Sep 30, 2022

@shuzijun 这个比较复杂,需要改为分块解析。我们目前没有时间进行调整,见谅。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants