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

行级元素支持多重样式类型 #2911

Closed
SylleoYr opened this issue Sep 13, 2021 · 8 comments
Closed

行级元素支持多重样式类型 #2911

SylleoYr opened this issue Sep 13, 2021 · 8 comments
Assignees
Labels
Milestone

Comments

@SylleoYr
Copy link

SylleoYr commented Sep 13, 2021

该方案相关变更:

旧版本不兼容新版本数据格式,所以一旦升级到新版本以后,所有端都必须使用新版本,否则行级元素会丢失。 建议升级前手动备份一次数据,所有端都安装好新版本以后再启动。


以下是原提议:

Describe the problem

编辑文字无法选择叠加多个样式, 如 加粗+斜体, 斜体+颜色, 只能选择单一样式.

一种解决办法是手动输入标记, 如 加粗+斜体, 并且只能按照如下顺序输入:

  1. ***
  2. ***test
  3. ***test***

加粗+链接:

  1. **[test](link
  2. **[test](link)**

因为一旦提前输入了完整的样式标记符号, 如 ****, 再将光标移至中间就会使得只有第一个字母被添加上样式 (中文可能是因为输入法原因好像没这个问题)

Expected result

可以为一段文字叠加多个样式, 如 加粗+链接, 加粗+斜体/删除线/下划线 等等.

手动输入多有不便, 还是希望可以选择多个样式叠加.

Screenshot or screen recording presentation

stack_style

Version environment

  • Version: v1.3.4
  • Operating system: Windows 10 21H1
  • Browser (if used):

Log File

More information

@88250
Copy link
Member

88250 commented Sep 13, 2021

这个比较复杂,暂时不做改进,后面要做的话会重开,谢谢。

@88250 88250 closed this as completed Sep 13, 2021
@88250 88250 changed the title 文本编辑叠加多个样式 行级排版元素嵌套和交叉 Sep 13, 2021
@SylleoYr
Copy link
Author

👌

@88250
Copy link
Member

88250 commented Oct 9, 2021

加粗使转义符暴露 #2849
下划线覆盖公式问题 #3277

@bestv5
Copy link

bestv5 commented Nov 10, 2021

目前思源作者还没计划增加多重效果。看来只能先手动输入效果了。附图
image

@jabobian
Copy link

我觉得如果能提供 Alt-Shift-X,弹出
字体样式 这个窗口就基本可以用了,可以自己设计一组鼠标动作点击对应位置来切换字体。

用Autohotkey能检测到这个窗口,字体样式 - 思源 v1.8.2 ahk_class Chrome_WidgetWin_1 ahk_exe SiYuan.exe 。
Alt-X默认是应用当前字体样式。

leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
leolee9086 pushed a commit to leolee9086/siyuan that referenced this issue Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants