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

支持代码块高亮渲染和一键复制 #52

Closed
normal-coder opened this issue Jul 3, 2023 · 6 comments
Closed

支持代码块高亮渲染和一键复制 #52

normal-coder opened this issue Jul 3, 2023 · 6 comments

Comments

@normal-coder
Copy link
Contributor

Is your feature request related to a problem? Please describe.

无法高亮查看代码块并快速选择复制

Describe the solution you'd like

支持代码块高亮渲染和一键复制

Describe alternatives you've considered

暂无,可考虑参考如下:

Additional context

image
@lisiur
Copy link
Owner

lisiur commented Jul 4, 2023

代码高亮应该是支持的,方便告知没有高亮的代码语言吗,或者贴出没有代码高亮的相关截图吗

@normal-coder
Copy link
Contributor Author

目前是自己输入的部分没有渲染。

image

@lisiur
Copy link
Owner

lisiur commented Jul 6, 2023

  1. 用户输入的部分确实没有使用 markdown 渲染,后面会考虑加入这个功能。
  2. 复制代码块的功能也会在下一个版本提供。

@normal-coder
Copy link
Contributor Author

  1. 用户输入的部分确实没有使用 markdown 渲染,后面会考虑加入这个功能。
  2. 复制代码块的功能也会在下一个版本提供。

目前复制代码块和复制全文的边界不太清晰,可以考虑给整个内容块禁用文本选择(user-select:none)。毕竟已经提供了复制全文的功能了。

@lisiur
Copy link
Owner

lisiur commented Jul 8, 2023

这似乎不是很妥当,有些人可能只想复制部分内容

@normal-coder
Copy link
Contributor Author

这似乎不是很妥当,有些人可能只想复制部分内容

目前代码块的选择会跨出。甚至会选中到标题(可能这些位置处理下会更好些)

@lisiur lisiur closed this as completed in bf8b19d Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants