-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Strip Markdown markers when pasting content into doc title #13652
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
Comments
这里没看懂
用粘贴转义文本 |
那定义不太一样,思源里面定义的纯文本是去掉标记符的。 粘贴到文档标题时默认用纯文本应该比较符合用户预期。 |
粘贴处理的话都是使用的纯文本,因为没有 api 可以读取到 text/html |
这样的话那就改成粘贴时纯文本去除 Markdown 标记符吧 |
现在直接粘贴是去除标记符,那粘贴纯文本就改成原样保留标记符吧 |
不改了不改了,作为标题需要标记符的场景太少了 |
mouyase
pushed a commit
to mouyase/siyuan
that referenced
this issue
Feb 28, 2025
mouyase
pushed a commit
to mouyase/siyuan
that referenced
this issue
Feb 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
复制正文内容粘贴到标题时,应去除 Markdown 标记符
一般带 Markdown 标记符是不符合用户预期的,除非用户粘贴的就是带 Markdown 标记符的纯文本。
如果要保留标记符粘贴,应当先粘贴到代码块里再复制带 Markdown 标记符的纯文本粘贴到标题。
然后就有一个问题,将“带 Markdown 标记符的纯文本”
粘贴为纯文本
之后会去除 Markdown 标记符而不是保留原状。The text was updated successfully, but these errors were encountered: