🎨 tag hint

This commit is contained in:
Vanessa 2024-05-11 09:28:28 +08:00
parent 7f35f457b9
commit 1e982e16e0

View file

@ -295,7 +295,7 @@ export const hintTag = (key: string, protyle: IProtyle): IHintData[] => {
const value = item.replace(/<mark>/g, "").replace(/<\/mark>/g, "");
dataList.push({
value: `<span data-type="tag">${value}</span>`,
html: item,
html: `<div class="b3-list-item__text">${item}</div>`,
});
if (value === response.data.k) {
hasKey = true;
@ -304,7 +304,7 @@ export const hintTag = (key: string, protyle: IProtyle): IHintData[] => {
if (response.data.k && !hasKey) {
dataList.splice(0, 0, {
value: `<span data-type="tag">${response.data.k}</span>`,
html: `${window.siyuan.languages.new} <mark>${escapeHtml(response.data.k)}</mark>`,
html: `<div class="b3-list-item__text">${window.siyuan.languages.new} <mark>${escapeHtml(response.data.k)}</mark></div>`,
});
if (dataList.length > 1) {
dataList[1].focus = true;