added: setting to set bullet rendering
This commit is contained in:
parent
e615af8250
commit
cc790f8f89
10
main.js
10
main.js
|
@ -15,7 +15,8 @@ var defaultsettings =
|
|||
enablenetwork: false,
|
||||
titlebydefault: false,
|
||||
linksinnewtab: true,
|
||||
colors: true
|
||||
colors: true,
|
||||
bulletrendering: "•"
|
||||
};
|
||||
|
||||
//builtin
|
||||
|
@ -409,11 +410,6 @@ var snippets = [
|
|||
insert: "— ",
|
||||
cursor: 0
|
||||
},
|
||||
{
|
||||
command: "/*",
|
||||
hint: "Bullet point",
|
||||
insert: "• "
|
||||
},
|
||||
{
|
||||
command: "/comment",
|
||||
hint: "Comment",
|
||||
|
@ -2138,7 +2134,7 @@ function applycolors()
|
|||
{
|
||||
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>");
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue