Add handling of NOTE -'s.

This commit is contained in:
kor 2018-10-30 03:17:10 +13:00
parent 233a24b317
commit 9140181553
2 changed files with 10 additions and 9 deletions

View File

@ -531,11 +531,7 @@ function View()
{ {
for (var i in data) for (var i in data)
{ {
if (data[i] == "& ") if (data[i].substring(0, 2) == "> ")
{
// blank line, do nothing
}
else if (data[i].substring(0, 2) == "> ")
{ {
// New item // New item
if (data[i].includes(": ")) if (data[i].includes(": "))
@ -557,6 +553,11 @@ function View()
// New line in current item // New line in current item
result += `<div class="${className}">${data[i].substring(2)}</div>`; result += `<div class="${className}">${data[i].substring(2)}</div>`;
} }
else if (data[i].substring(0, 2) == "- ")
{
// Bullet point
result += `<div class="${className}"><i class="fas fa-caret-right textIcon"></i>${data[i].substring(2)}</div>`;
}
else else
{ {
// Handle unformatted // Handle unformatted