## Return headers
```dataviewjs
//Configurations
const pages = dv.pages('#reviews/daily')
.filter(p => !p.file.path.includes('Hidden'))
.sort(p => p.file.name, "desc")
.limit(7); // Make your search
const headName = "Today";
const headLevel = "## "
for (const page of pages) {
const content = await dv.io.load(page.file.path);
const lines = content.split('\n');
var output = [];
var insideHead = false;
// Displaying the file name
dv.header(3, page.file.name);
for (const line of lines) {
if (line.startsWith(headLevel + headName)) {
insideHead = true;
} else if (line.startsWith(headLevel) && insideHead) {
insideHead = false;
break; // Exit the loop when the next heading is encountered
} else if (insideHead) {
output.push(line);
}
}
dv.paragraph(output.join('\n'));
}
```