mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 13:11:46 +08:00
fix (org): task list tags
This commit is contained in:
@ -130,7 +130,9 @@ export function parse(content){
|
|||||||
if(data = parse_header(text, i)){
|
if(data = parse_header(text, i)){
|
||||||
tags = tags.filter(e => e.level < data.level);
|
tags = tags.filter(e => e.level < data.level);
|
||||||
tags.push({ level: data.level, tags: data.tags });
|
tags.push({ level: data.level, tags: data.tags });
|
||||||
data.tags = Array.concat.apply(null, tags.map((e) => e.tags));
|
data.tags = tags.reduce((acc, el) => {
|
||||||
|
return acc.concat(el.tags);
|
||||||
|
}, []);
|
||||||
|
|
||||||
if(todo.header){
|
if(todo.header){
|
||||||
todos.push(todo);
|
todos.push(todo);
|
||||||
|
|||||||
Reference in New Issue
Block a user