Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: expose extractSnippetAroundIndex as template function #805

Open
schroederc opened this issue Mar 12, 2024 · 0 comments
Open

Comments

@schroederc
Copy link

I'd like to use extractSnippetAroundIndex in some custom templates. Potentially with an extra argument that caps the length of the rendered snippet.

Example usage:

template: |
  {{#if .}}
  # Quick Notes
  {{#each .}}
  * [[{{name}}]]: {{extractSnippetAroundIndex(makeIndex(name, 0))}}
  {{/each}}
  {{/if}}
query: |
  page where name =~ /^Inbox\/{{journalDate(@page.name)}} /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant