Skip to content

Add Front-Matter Extraction and Templating Feature - #136

Open
TheShinriel wants to merge 3 commits into
lynchjames:mainfrom
TheShinriel:main
Open

Add Front-Matter Extraction and Templating Feature#136
TheShinriel wants to merge 3 commits into
lynchjames:mainfrom
TheShinriel:main

Conversation

@TheShinriel

Copy link
Copy Markdown

This pull request introduces a new feature for extracting and templating front-matter properties in notes. The following changes have been implemented:

  1. Front-Matter Extraction: A method extractFrontMatterProps has been added to the NRDoc class, allowing the extraction of key-value pairs from the front-matter section of a note.

  2. Templating with Front-Matter: The templatedContent method now supports the use of front-matter properties within templates, enabling dynamic content generation based on note metadata.

  3. Tests: Comprehensive tests have been added to ensure the correct extraction and application of front-matter properties in various scenarios.

Please review the changes and provide feedback. This feature aims to enhance the note refactoring capabilities by leveraging front-matter metadata for more flexible and personalized note content.

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

Successfully merging this pull request may close these issues.

1 participant