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

[BUG] Not executing if hidden with HTML comment #388

Open
thegreekgeek opened this issue Nov 27, 2024 · 2 comments
Open

[BUG] Not executing if hidden with HTML comment #388

thegreekgeek opened this issue Nov 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@thegreekgeek
Copy link

thegreekgeek commented Nov 27, 2024

Describe the bug
I'm using the powershell support to run pandoc, and to hide my output I enclose the code block in HTML comments "". Recently however, hiding the code seems to keep it from running. Does anyone have any ideas as to why?

Software Version
I'm running Windows 11 with Obsidian v1.7.7, along with powershell v5.1.26100.1882, and pandoc v3.4

To Reproduce

  1. Create powershell code block with pandoc commands
  2. Hide code block with html comments <!-- -->
  3. Switch to preview mode
  4. Hit Ctrl+P and select "Run all commands in note"

Expected behavior
I expected it to output the modified document.

@thegreekgeek thegreekgeek added the bug Something isn't working label Nov 27, 2024
@twibiral
Copy link
Owner

Do the other code blocks that are not hidden run?

Do you have persistent output enabled in the settings?

@thegreekgeek
Copy link
Author

Hey, adding a second uncommented block of code will run that code, but not the commented code. And I do not have persistent output enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants