zhaohongxuan / obsidian-weread-plugin

Obsidian Weread Plugin is a plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.
MIT License
1.25k stars 65 forks source link

我也分享一个模版,划线用引用,评论用callout #155

Open tangjyan opened 1 year ago

tangjyan commented 1 year ago
---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
---
> [!abstract] {{metaData.title}}
> - ![ {{metaData.title}}|200]({{metaData.cover}})
> - 书名: {{metaData.title}}
> - 作者: {{metaData.author}}
> - 简介: {{metaData.intro}}
> - 出版时间: {{metaData.publishTime}}
> - ISBN: {{metaData.isbn}}
> - 分类: {{metaData.category}}
> - 出版社: {{metaData.publisher}}
> - 划线数量:{{metaData.noteCount}}
> - 笔记数量: {{metaData.reviewCount}}

## 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
> [!tip] {{bookReview.mdContent}}
{% endfor%}{% endif %}

## 高亮划线
{% for chapter in chapterHighlights %}
### {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}{% if highlight.reviewContent %}{% else %}
> {{ highlight.markText | trim }}{% endif %}
{% endfor %}{% endfor %}

## 读书笔记
{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}
### {{chapter.chapterTitle}}
{% if  chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}
> [!tldr] **章节评论**: {{chapterReview.content}}
{% endfor%}{%endif %}

{% if chapter.reviews %}{%for review in chapter.reviews %}> [!note] {{review.content}}
>> {{review.abstract | trim }}

{% endfor %}{%endif %}{% endif %}{% endfor %}
changefu commented 1 year ago

我觉得你应该发一个预览图 好让我们知道效果

tangjyan commented 1 year ago

我觉得你应该发一个预览图 好让我们知道效果

image

adevjoe commented 1 year ago

你这是啥主题呀

tangjyan commented 1 year ago

你这是啥主题呀

就是商店里的minimal那个,二级标题下划线那个改一下css就行了

qianxun321 commented 1 year ago

很漂亮,但是有个小问题,这里为什么有的笔记是一整个块,有的地方笔记和原文拆开了

image
aXingLee commented 4 months ago

感谢分享!弱弱求助:callout的底色可以更换么?劳驾指路