mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 Supports disabling Markdown syntax input for some inline elements https://github.com/siyuan-note/siyuan/issues/11141
This commit is contained in:
parent
898c37c68f
commit
770c3c52a6
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue