From 5296978177d88db829edf0fbac8f6f53c399492c Mon Sep 17 00:00:00 2001 From: zhaohongxuan Date: Sun, 28 Jul 2024 14:00:30 +0800 Subject: [PATCH 1/3] feat: save meta info to frontmatter --- manifest.json | 2 +- package.json | 2 +- src/assets/templateInstructions.html | 2 +- src/settingTab.ts | 12 +++++++++ src/settings.ts | 14 +++++++++-- src/utils/frontmatter.ts | 37 +++++++++++++++++----------- 6 files changed, 50 insertions(+), 19 deletions(-) diff --git a/manifest.json b/manifest.json index 4c80b31..5717ac3 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-weread-plugin", "name": "Weread", - "version": "0.10.0", + "version": "0.11.0", "minAppVersion": "0.12.0", "description": "This is obsidian plugin for Tencent weread.", "author": "hankzhao", diff --git a/package.json b/package.json index c50a1ff..6a118ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-weread-plugin", - "version": "0.10.0", + "version": "0.11.0", "description": "This is a community plugin for tencent weread (https://r.qq.com)", "main": "main.ts", "scripts": { diff --git a/src/assets/templateInstructions.html b/src/assets/templateInstructions.html index 51450ba..f05879d 100644 --- a/src/assets/templateInstructions.html +++ b/src/assets/templateInstructions.html @@ -15,7 +15,7 @@

可用变量

  • {{isbn}} - ISBN
  • {{category}} - 分类
  • {{publisher}} - 出版社
  • -
  • {{finish}} - 是否读完(还未支持)
  • +
  • {{readInfo}} - 阅读信息, 点击查看详情
  • 划线变量(chapterHighlights)