Skip to content

Commit

Permalink
fix article bookmarkid reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohongxuan committed Aug 13, 2024
1 parent 59aa59e commit 6ab1b6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-weread-plugin",
"name": "Weread",
"version": "0.11.1",
"version": "0.11.2",
"minAppVersion": "0.12.0",
"description": "This is obsidian plugin for Tencent weread.",
"author": "hankzhao",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-weread-plugin",
"version": "0.11.1",
"version": "0.11.2",
"description": "This is a community plugin for tencent weread (https://r.qq.com)",
"main": "main.ts",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/parser/parseResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const parseHighlights = (
.first();
const intentMarkText = addIndentToParagraphs(highlight.markText)
return {
bookmarkId: highlight.bookmarkId?.replace(/_/gi, '-'),
bookmarkId: highlight.bookmarkId?.replace(/[_~]/g, '-'),
created: highlight.createTime,
createTime: window.moment(highlight.createTime * 1000).format('YYYY-MM-DD HH:mm:ss'),
chapterUid: highlight.chapterUid,
Expand Down Expand Up @@ -288,7 +288,7 @@ export const parseReviews = (resp: BookReviewResponse): Review[] => {
chapterUid: review.chapterUid,
chapterTitle: review.chapterTitle || review.refMpInfo?.title,
content: convertTags ? convertTagToBiLink(review.content) : review.content,
reviewId: reviewId?.replace(/_/gi, '-'),
reviewId: reviewId?.replace(/[_~]/g, '-'),
mdContent: finalMdContent,
range: review.range,
abstract: review.abstract,
Expand Down

0 comments on commit 6ab1b6f

Please sign in to comment.