Skip to content

部分以 \* 开头的行级元素未被转义并在粘贴后撤销时触发状态异常 #5260

Closed
@Zuoqiu-Yingyi

Description

@Zuoqiu-Yingyi
Contributor

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

描述问题 Describe the problem

复现步骤

  1. 输入 \*\*\*
  2. 加粗刚刚输入的 \*\*\*
  3. 在不选中内容的情况下使用快捷键 Ctrl + X 剪切内容
  4. 粘贴内容
  5. 撤销

期待的结果 Expected result

\* 开头的行内元素能够正常转义 * 符号并在粘贴后能够正常撤销

截屏或者录屏演示 Screenshot or screen recording presentation

思源笔记-bug反馈-34

版本环境 Version environment

- Version: `2.0.22`
- Operating System: 
- Browser (if used):

日志文件 Log file

E 2022/06/21 12:53:46 transaction.go:976: load tree [id=20220621125153-o6987nb] failed: block not found

更多信息 More information

使用 API 更新块时 **\*\*\*** 可以正常显示为 ***
使用编辑器手动编辑时 **\*\*\*** 显示为 \***

Activity

self-assigned this
on Jun 23, 2022
added this to the 2.0.24 milestone on Jun 23, 2022
added a commit that references this issue on Jun 23, 2022
changed the title [-]部分以 `\*` 开头的行级元素未被转义并在粘贴后撤销时出现运行时异常[/-] [+]部分以 `\*` 开头的行级元素未被转义并在粘贴后撤销时触发状态异常[/+] on Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @Vanessa219@Zuoqiu-Yingyi

      Issue actions

        部分以 `\*` 开头的行级元素未被转义并在粘贴后撤销时触发状态异常 · Issue #5260 · siyuan-note/siyuan