mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 10:16:10 +01:00
🎨 Change the unordered list marker from "*" to "-" (#15902)
This commit is contained in:
parent
f96298e34c
commit
8e443ce5c3
6 changed files with 15 additions and 15 deletions
|
|
@ -394,7 +394,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
let text = "";
|
||||
rowElements.forEach((item, i) => {
|
||||
if (rowElements.length > 1) {
|
||||
text += "* ";
|
||||
text += "- ";
|
||||
}
|
||||
text += item.querySelector('.av__cell[data-dtype="block"] .av__celltext').textContent.trim();
|
||||
if (ids.length > 1 && i !== ids.length - 1) {
|
||||
|
|
@ -421,7 +421,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
content = `((${id} '${cellElement.querySelector(".av__celltext").textContent.replace(/[\n]+/g, " ")}'))`;
|
||||
}
|
||||
if (ids.length > 1) {
|
||||
text += "* ";
|
||||
text += "- ";
|
||||
}
|
||||
text += content;
|
||||
if (ids.length > 1 && i !== ids.length - 1) {
|
||||
|
|
@ -438,7 +438,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
let text = "";
|
||||
ids.forEach((id, index) => {
|
||||
if (ids.length > 1) {
|
||||
text += "* ";
|
||||
text += "- ";
|
||||
}
|
||||
const cellElement = rowElements[index].querySelector(".av__cell[data-dtype='block']");
|
||||
if (cellElement.getAttribute("data-detached") === "true") {
|
||||
|
|
@ -460,7 +460,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
let text = "";
|
||||
ids.forEach((id, index) => {
|
||||
if (ids.length > 1) {
|
||||
text += "* ";
|
||||
text += "- ";
|
||||
}
|
||||
const cellElement = rowElements[index].querySelector(".av__cell[data-dtype='block']");
|
||||
if (cellElement.getAttribute("data-detached") === "true") {
|
||||
|
|
@ -490,7 +490,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
content = `[${cellElement.querySelector(".av__celltext").textContent.replace(/[\n]+/g, " ")}](siyuan://blocks/${id})`;
|
||||
}
|
||||
if (ids.length > 1) {
|
||||
text += "* ";
|
||||
text += "- ";
|
||||
}
|
||||
text += content;
|
||||
if (ids.length > 1 && i !== ids.length - 1) {
|
||||
|
|
@ -517,7 +517,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
}
|
||||
|
||||
if (ids.length > 1) {
|
||||
text += "* ";
|
||||
text += "- ";
|
||||
}
|
||||
text += content;
|
||||
if (ids.length > 1 && i !== ids.length - 1) {
|
||||
|
|
@ -534,7 +534,7 @@ export const avContextmenu = (protyle: IProtyle, rowElement: HTMLElement, positi
|
|||
let text = "";
|
||||
ids.forEach((id, index) => {
|
||||
if (ids.length > 1) {
|
||||
text += "* ";
|
||||
text += "- ";
|
||||
}
|
||||
const cellElement = rowElements[index].querySelector(".av__cell[data-dtype='block']");
|
||||
if (cellElement.getAttribute("data-detached") === "true") {
|
||||
|
|
|
|||
|
|
@ -417,7 +417,7 @@ ${html || genSelectItemHTML({type: "empty"})}`;
|
|||
const selectedElements = options.menuElement.querySelectorAll('.b3-menu__item[draggable="true"]');
|
||||
selectedElements.forEach((item: HTMLElement) => {
|
||||
if (selectedElements.length > 1) {
|
||||
copyText += "* ";
|
||||
copyText += "- ";
|
||||
}
|
||||
const textElement = item.querySelector(".b3-menu__label") as HTMLElement;
|
||||
if (!textElement.dataset.id || textElement.dataset.id === "undefined") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue