mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Add handling of NOTE -'s.
This commit is contained in:
parent
233a24b317
commit
9140181553
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user