Skip to content

Supports configuration of whether to export inline memos #14605

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

Closed
TCOTC opened this issue Apr 14, 2025 · 14 comments
Closed

Supports configuration of whether to export inline memos #14605

TCOTC opened this issue Apr 14, 2025 · 14 comments
Assignees
Milestone

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Apr 14, 2025

支持不导出行级备注

https://ld246.com/article/1744632202233 改进功能建议 第二点

我也觉得有时候没必要导出备注,有时候用备注就是不希望影响正文内容

@88250 88250 assigned TCOTC and unassigned TCOTC Apr 15, 2025
@88250 88250 removed the Enhancement label Apr 15, 2025
@88250 88250 self-assigned this Apr 18, 2025
@88250 88250 added this to the 3.1.29 milestone Apr 20, 2025
@88250 88250 changed the title 支持不导出行级备注 Supports configuration of whether to export inline memos Apr 20, 2025
88250 added a commit to 88250/lute that referenced this issue Apr 20, 2025

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit to 88250/lute that referenced this issue Apr 20, 2025

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue Apr 20, 2025

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue Apr 20, 2025

Verified

This commit was signed with the committer’s verified signature.
@88250 88250 closed this as completed Apr 20, 2025
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 20, 2025

不带备注导出 PDF:

  1. 会多出一对括号

  2. 标签上的备注没有去除

    Image

带备注导出 PDF:

  1. 块引用和链接元素后没有显示上标的备注

    Image

@88250
Copy link
Member

88250 commented Apr 20, 2025

稍后改进

88250 added a commit to 88250/lute that referenced this issue Apr 20, 2025

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue Apr 20, 2025

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue Apr 20, 2025

Verified

This commit was signed with the committer’s verified signature.
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 22, 2025

给块引用添加备注,导出 PDF 时锚文本被替换为备注内容了:

Image

@88250
Copy link
Member

88250 commented Apr 23, 2025

稍后改进

88250 added a commit that referenced this issue Apr 23, 2025

Verified

This commit was signed with the committer’s verified signature.
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 24, 2025

带备注导出 word 之后:

  1. 超链接上的备注不对:

    Image

  2. 行级标签的备注应该要在井号后面:

    Image

  3. 遇到空格的时候会有点问题

    Image

    Image

@88250
Copy link
Member

88250 commented Apr 25, 2025

  1. 稍后改进

  2. 只能放在备注只能放在标签内部,看作是对文本的备注而不是对标签的备注

  3. 这种组合情况处理不了

    Image

88250 added a commit to 88250/lute that referenced this issue Apr 25, 2025

Verified

This commit was signed with the committer’s verified signature.
88250 added a commit that referenced this issue Apr 25, 2025

Verified

This commit was signed with the committer’s verified signature.
@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 25, 2025

第三种情况是为什么处理不了?

@88250
Copy link
Member

88250 commented Apr 25, 2025

没找到方案,平铺组合行级元素有个类型顺序的问题,你可以看下代码试着了解一下。

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 25, 2025

如果相邻的两个行级元素有相同的备注,这两个备注是不能合并成一个的吗?

Image

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 25, 2025

倾斜加上备注之后,导出 word 之后倾斜被转移到了备注上,原来倾斜的文本不倾斜了

Image

Image

@TCOTC
Copy link
Contributor Author

TCOTC commented Apr 25, 2025

平铺组合行级元素有个类型顺序的问题,你可以看下代码试着了解一下

看不太懂,这个逻辑的代码是哪一部分?

@88250
Copy link
Member

88250 commented Apr 25, 2025

如果相邻的两个行级元素有相同的备注,这两个备注是不能合并成一个的吗?

Image

完全相同的行级元素可以合并,稍后改进。

Image

截图里面是粗体和斜体的备注,这种情况合并不了。

@88250
Copy link
Member

88250 commented Apr 25, 2025

平铺组合行级元素有个类型顺序的问题,你可以看下代码试着了解一下

看不太懂,这个逻辑的代码是哪一部分?

https://github.com/88250/lute/blob/master/render/protyle_export_docx_renderer.go 中的 renderTextMark

@88250
Copy link
Member

88250 commented Apr 25, 2025

倾斜加上备注之后,导出 word 之后倾斜被转移到了备注上,原来倾斜的文本不倾斜了

Image

Image

组合行级元素都是一个问题,目前基本是处理不了,你看下代码看看能否帮忙改进。

88250 added a commit to 88250/lute that referenced this issue Apr 25, 2025

Verified

This commit was signed with the committer’s verified signature.
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

3 participants
@88250 @TCOTC and others