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

Improve exporting Markdown #13273

Closed
Achuan-2 opened this issue Nov 26, 2024 · 3 comments
Closed

Improve exporting Markdown #13273

Achuan-2 opened this issue Nov 26, 2024 · 3 comments
Assignees
Milestone

Comments

@Achuan-2
Copy link
Member

Achuan-2 commented Nov 26, 2024

导出markdown的块引转锚点哈希优化

In what scenarios do you need this feature?

块引转锚点哈希,这个功能特别好,这样块引导出markdown,也能使用跳转功能,可以用于构建目录、图表引用等写作场景

不过导出功能还有明显问题

Describe the optimal solution

  1. 当文档名为20241126 09:51:07,带有特殊符号,导出文件会把:去除,建议把去除改为使用“_”替换特殊字符,来表示这个地方被替换了
  2. 文件名会对特殊符号进行优化,但是导出的锚点哈希没有对特殊符号进行处理,导致无法跳转

PixPin_2024-11-26_10-01-37

  1. 锚点哈希应该用相对路径,而不是绝对路径。如果块引本身引用的就是当前文档,希望不要在前面添加导出的完整路径,直接用锚点哈希,不然只打开当前markdown是无法跳转的。

PixPin_2024-11-26_10-03-13

  1. 导出单个markdown,建议进行特殊处理,不要用思源的路径导出,否则每次导出都得一个层级一个层级翻,直接放在根目录,如果这个文档块引引用了其他文档,其他文档放在同级文件夹里,比如叫ref

Describe the candidate solution

No response

Other information

No response

@88250 88250 self-assigned this Nov 26, 2024
@88250 88250 added this to the 3.1.14 milestone Nov 26, 2024
@88250 88250 changed the title 导出markdown的块引转锚点哈希优化 Improve exporting Markdown Nov 26, 2024
@88250
Copy link
Member

88250 commented Nov 26, 2024

  1. Special characters in exported file names are replaced by _ #13274
  2. 稍后改进
  3. 稍后改进
  4. 这个不改了

感谢反馈。

88250 added a commit that referenced this issue Nov 26, 2024
88250 added a commit that referenced this issue Nov 26, 2024
88250 added a commit that referenced this issue Nov 26, 2024
@88250 88250 closed this as completed Nov 26, 2024
@Achuan-2
Copy link
Member Author

Achuan-2 commented Nov 27, 2024

@88250

如果引用的块是表格,设置块引转锚点哈希,导出markdown之后表格会不渲染,能否在锚点哈希后多一个空行

PixPin_2024-11-27_18-45-38

@88250
Copy link
Member

88250 commented Nov 27, 2024

稍后调整

88250 added a commit that referenced this issue Nov 27, 2024
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

2 participants