Help with a Dataview JS Codeblock?

Great observation! No one can distinguish a list item from a task item from the value of L.text where L is an element of file.lists .

Here is a good start to understand it.

Notes

Summary
  1. The file.lists contain both list items and task items.

  2. How to distinguish list items from task items from the file.lists data?

  • a list item: !L.task
  • a task item: L.task
  • L : each element of file.lists of each page
  1. Each screenshot of the following DVJS contains both list items and task items.
  • DVJS01
  • DVJS10
  • DVJS12
  • DVJS20
  • DVJS30

But that only works for list items, correct? Not for the full text of a section?