Embed queried headings in custom format

I want to embed e.g. a register of issues.
Each issue is just a heading prefix with the tag #Issue. So I can easily embed:

/^#+ #Issue .+$/

What I’m missing is the possibility to change the output, preferably by using the regex replace syntax like e.g.:

/^#+ #(Issue .+)$/$1/

This would show much cleaner results, especially when the is more structure used in the headings, or even in their contents.

I don’t know what the flags are for embedded queries, but it would be nice if I could specify them, like this:

/^#+ #(Issue .+)$/$1/gi

I’m new to obsidian and java script. So please direct me to appropriate features for me use case.

Is there a sample code how to incorporate a query into a js-engine block?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.