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

[BUG]请问如何设置才能够同步所有子章节呢? #328

Open
yett1873 opened this issue Aug 23, 2024 · 0 comments
Open

[BUG]请问如何设置才能够同步所有子章节呢? #328

yett1873 opened this issue Aug 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yett1873
Copy link

描述bug
如图所示,微信读书中【卷一】下还有小标题,但Obsidian中只获取到了第三级【卷一】。请问应如何写模板才能获取更下一级的子章节呢?

预期行为
获取全部目录结构(或至少获取到模板中的第五级)

截图
微信读书目录:
image
实际获取到的目录:
image

桌面(请填写以下信息):

  • 操作系统:macOS 14
  • Obsidian版本:1.7.0
  • 插件版本: 0.11.2

补充信息
目前我所用的高亮模板如下:

# 高亮划线
{% for chapter in chapterHighlights %}
{% if chapter.level == 1 %}## {{chapter.chapterTitle}}{% elif chapter.level == 2 %}### {{chapter.chapterTitle}}{% elif chapter.level == 3 %}#### {{chapter.chapterTitle}}{% elif chapter.level == 4 %}##### {{chapter.chapterTitle}}{% elif chapter.level == 5 %}###### {{chapter.chapterTitle}}{% else %}## {{chapter.chapterTitle}}{% endif %}
{% for highlight in chapter.highlights %}{% if highlight.reviewContent %}
- {{highlight.colorStyle | replace("0", "🟨" ) | replace("5", "🟨" ) | replace("1", "🟥" ) | replace("2", "🟪" ) | replace("3", "🟦" ) | replace("4", "🟩" ) }} ^[{{highlight.createTime}}]{{ highlight.markText |trim }} ^{{highlight.bookmarkId}}
	- % {{highlight.reviewContent}} {% else %}
- {{highlight.colorStyle | replace("0", "🟨" ) | replace("5", "🟨" ) | replace("1", "🟥" ) | replace("2", "🟪" ) | replace("3", "🟦" ) | replace("4", "🟩" ) }} ^[{{highlight.createTime}}]{{ highlight.markText |trim }} ^{{highlight.bookmarkId}}

---
{% endif %}{% endfor %}{% endfor %}
@yett1873 yett1873 added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants