added: setting to set bullet rendering

This commit is contained in:
quenousimporte 2023-10-09 12:45:25 +02:00
parent e615af8250
commit cc790f8f89
1 changed files with 3 additions and 7 deletions

10
main.js
View File

@ -15,7 +15,8 @@ var defaultsettings =
enablenetwork: false, enablenetwork: false,
titlebydefault: false, titlebydefault: false,
linksinnewtab: true, linksinnewtab: true,
colors: true colors: true,
bulletrendering: "•"
}; };
//builtin //builtin
@ -409,11 +410,6 @@ var snippets = [
insert: "— ", insert: "— ",
cursor: 0 cursor: 0
}, },
{
command: "/*",
hint: "Bullet point",
insert: "• "
},
{ {
command: "/comment", command: "/comment",
hint: "Comment", hint: "Comment",
@ -2138,7 +2134,7 @@ function applycolors()
{ {
if (line.startsWith(marker)) if (line.startsWith(marker))
{ {
line = line.replace(marker, "<span style='color:" + settings.accentcolor + "'>" + marker.replaceAll("*", "•") + "</span>"); line = line.replace(marker, "<span style='color:" + settings.accentcolor + "'>" + marker.replaceAll("*", settings.bulletrendering) + "</span>");
} }
}); });