Skip to content

Instantly share code, notes, and snippets.

@martonfekete
martonfekete / query-callouts-in-files.md
Created May 4, 2023 11:54
Use Obsidian Dataview to collect all callouts from your files

Your table

// Get all pages
const pages = dv.pages()

// This regex will find the contents of the callout [!quote]
// If you want a different type to be found, update the "quote" to the corresponding callout format
const regex = /\s*\>\s*\[\!quote\]\n\s*>\s*(.*)\n/gm