🎨 Supports disabling Markdown syntax input for some inline elements https://github.com/siyuan-note/siyuan/issues/11141

This commit is contained in:
Daniel 2024-04-26 17:59:14 +08:00
parent 898c37c68f
commit 770c3c52a6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

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