-
Notifications
You must be signed in to change notification settings - Fork 3
Allow for populating note body when note is defined in frontmatter #50
New issue
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, looks good overall. Just a few notes and then we can get this merged in.
- Small mishap on
events.ts
- Please write some "release notes" in the README regarding this change (release for this will be 2.1.11) and move the current release notes to the changelog.
- After doing that, run
npm run bump:patch
to update the version numbers on everything (manifest.json, package.json, & package-lock.json) - This is a particularity of mine but please alphabetize
noteBody
with the othernote..
variables/keys - I actually recently deleted the description attribute from the "Insert HTML event" function
createTimelineEventInCurrentNote
so you'll want to add that back intocommands.ts
:newEventElement.setAttribute( 'data-description', '' )
- and lastly, if you want (optional here - I can do it later), you can add a small section on the Description attribute to the docs in the
01_html_arguments.md
file.
Thanks!
…a frontmatter by way of the 'description' property - edited style rules so that whitespace within the description property (line breaks, esp.) is respected and not discarded - reinstated the 'description' property for HTML defined events (albeit redundant) - updated documentation to reflect changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I actually hadn't ran npm run bump:patch yet because I wanted to build the plugin and test it and make sure it worked as intended first but getting the build script to run proved difficult for me |
If you would open another issue for tracking down the build issues, I believe that would be extremely helpful for anyone who may want to contribute in the future. |
Previously, only notes defined via HTML had their body populated via the
innerText
. These edits should allow for the frontmatterdescription
property to achieve the same effect.