Skip to content

Use - marker for lists when exporting Markdown #14680

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
Juexe opened this issue Apr 22, 2025 · 5 comments
Closed

Use - marker for lists when exporting Markdown #14680

Juexe opened this issue Apr 22, 2025 · 5 comments
Assignees
Milestone

Comments

@Juexe
Copy link

Juexe commented Apr 22, 2025

复制所得markdown列表符号问题

In what scenarios do you need this feature?

测试内容

Image

复制粘贴效果,可读性较差。

* A

  * 1
  * 2
* B

  * 3
* C

Describe the optimal solution

期望格式

- A
  - 1
  - 2
- B
  - 3
- C
  1. 不应该多出空行
  2. 使用主流的 - 而不是 *

Describe the candidate solution

No response

Other information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Apr 22, 2025

@Achuan-2
Copy link
Member

Achuan-2 commented Apr 22, 2025

加一


终于改进了,舒服了

@88250 88250 self-assigned this Apr 22, 2025
@88250 88250 changed the title 复制所得markdown列表符号问题 Use - marker for lists when exporting Markdown Apr 22, 2025
@88250 88250 added this to the 3.1.29 milestone Apr 22, 2025
88250 added a commit to 88250/lute that referenced this issue Apr 22, 2025
88250 added a commit that referenced this issue Apr 22, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@88250 88250 closed this as completed Apr 22, 2025
@TCOTC
Copy link
Contributor

TCOTC commented May 6, 2025

提示后来者:在以前的查询中(比如SQL),* [ ] 需要更新为 - [ ]* [x] 需要更新为 - [x],工作空间需要重建索引

@TCOTC
Copy link
Contributor

TCOTC commented May 9, 2025

@88250 你看看这个怎么样:


该版本包含重要变更:列表 Markdown 符号从 * 变更为 -#14680

影响范围:

  1. 复制或导出列表 Markdown 时符号变更为 -
  2. 依赖列表 * 符号的 SQL 查询语句或插件需调整逻辑

适配操作

  1. 执行 文档树 - 更多 - 重建索引 以更新数据库中的列表符号

  2. 修改相关的 SQL 查询语句:

    • 仅支持新格式:例如将 markdown LIKE '* [x]%' 改为 markdown LIKE '- [x]%'
    • 兼容新旧格式:例如改为 markdown LIKE '- [x]%' OR markdown LIKE '* [x]%'
该版本包含重要变更:列表 Markdown 符号从 `*` 变更为 `-`[#14680](https://github.com/siyuan-note/siyuan/issues/14680)**影响范围:**

1. 复制或导出列表 Markdown 时符号变更为 `-`
2. 依赖列表 `*` 符号的 SQL 查询语句或插件需调整逻辑

**适配操作**1. 执行 `文档树` - `更多` - `重建索引` 以更新数据库中的列表符号
2. 修改相关的 SQL 查询语句:

    - 仅支持新格式:例如将 `markdown LIKE '* [x]%'` 改为 `markdown LIKE '- [x]%'`
    - 兼容新旧格式:例如改为 `markdown LIKE '- [x]%' OR markdown LIKE '* [x]%'`

@88250
Copy link
Member

88250 commented May 10, 2025

干得漂亮,数据库 改为 数据索引

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

4 participants