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,
|
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>");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue