Skip to content

add usage page for startup-scripts #1

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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

Cube707
Copy link
Contributor

@Cube707 Cube707 commented Feb 28, 2025

This PR adds documentation for startup-scripts.

@Cube707
Copy link
Contributor Author

Cube707 commented Mar 5, 2025

this PR no longer includes the changes added by mProjectsCode/obsidian-js-engine-plugin#34

see #2


## Global Variables

JS-Engine runs the scripts in the same context as all other code-blocks.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small correction, it's not entirely the same. Startup scripts run with a JSFileExecutionContext and code blocks run with a MarkdownCodeBlockExecutionContext, but that is also not properly documented yet.

@mProjectsCode
Copy link
Owner

This is fine as it is. I will at some point write up the guide to the different execution contexts and then correct what I commented above.

@mProjectsCode mProjectsCode merged commit 1f8e760 into mProjectsCode:main Mar 5, 2025
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.

2 participants