Tasks extraction
aka Checklist, TODO
Introduction
Imagine you are writing an article and you have some checklist of what else you want to cover in the article.
On one hand it is convinient to keep this checklist in the article itslef. On the other hand you may want to see all tasks at glance. With the help of BrainDB it is possible to extract all tasks from all pages and list them on one page.
Installation
-
Install BrainDB
-
Create
TaskList
component -
Use component, wherever you like
Limitations
For now I implemented bare minimum for task extraction in BrainDB. Those are limitation which I want to address in the future.
Limitation 1: flat list
BrainDB will return this as a flat list instead of hierarchical structure:
Limitation 2: text only
BrainDb can return markdown for the content of the task, but for now I didn’t figure out good way to render it with Astro. I use text insted:
Limitation 3: no subitems
For now BrainDb returns only content of the task, but not subitems:
Example
This is an example of <TaskList />
output 👇