Skip to content

Commit

Permalink
feat: hide md tag when display note (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 authored May 24, 2024
1 parent 4f9f222 commit 9864e5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ scp {
>
<div>|</div>
<div class="truncate underline">
{{ item.note }}
{{ item.note.substring(0, 4) === "<md>" ? item.note.replace("<md>", "") : item.note }}
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ const fields = computed(() => {
}
break;
}
case "note": {
value = value.substring(0, 4) === "<md>" ? value.replace("<md>", "") : value;
break;
}
}
const field = {
Expand Down

0 comments on commit 9864e5d

Please sign in to comment.