Skip to content

Commit

Permalink
fix: 修复"阅读更多"链接渲染
Browse files Browse the repository at this point in the history
  • Loading branch information
Souls-R committed Aug 27, 2024
1 parent 8f150e4 commit 6d7540a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const parseBody = (body: string, href: string) => {
let lastTagContent = marked_content.substring(lastTag);
// remove the last tag
marked_content = marked_content.substring(0, lastTag);
let end = "……&nbsp&nbsp<a href={" + href + "}>[阅读更多]</a>" + lastTagContent;
let end = "……&nbsp&nbsp<a href=" + href + ">[阅读更多]</a>" + lastTagContent;
return marked_content + end;
}

Expand Down

0 comments on commit 6d7540a

Please sign in to comment.