Skip to content

use enabledCommands to limit the commands that can be used in markdown views - #197

Merged
yoavbls merged 1 commit into
yoavbls:mainfrom
kevinramharak:fix/use-enabled-commands
Mar 28, 2026
Merged

yoavbls merged 1 commit into
yoavbls:mainfrom
kevinramharak:fix/use-enabled-commands

Conversation

@kevinramharak

Copy link
Copy Markdown
Collaborator

This PR fixes a TODO comment to use isTrusted: { enabledCommands: string[] } where possible.

It also moves the commands to a shared const array, so it keeps the whitelist in a single spot.

@yoavbls yoavbls left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Super important, thank you!

@yoavbls
yoavbls merged commit 6c4022c into yoavbls:main Mar 28, 2026
1 check passed
@kevinramharak
kevinramharak deleted the fix/use-enabled-commands branch June 14, 2026 10:00
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