Skip to content

Commit

Permalink
Merge pull request #191 from Souls-R/master
Browse files Browse the repository at this point in the history
fix: 修复"阅读更多"链接渲染
  • Loading branch information
mudongliang authored Aug 27, 2024
2 parents 8f150e4 + 6d7540a commit c84d57f
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 c84d57f

Please sign in to comment.