Skip to content

Command "Open current code block in Monaco Editor" won't work when the code block is indented #26

Description

@hyungtaecf

Describe the bug
The command "Open current code block in Monaco Editor" won't work when the code block is indented. The log shows "Your cursor is currently not in a valid code block".

To Reproduce
Indent any code block (e.g. inside a list item)

Expected behavior
It is expected to recognize the code block that is indented and fix the indentation when editing the code block.

Screenshots
Example of indented code block that is recognized by Obisidan but not by this plugin. (in live-preview and reading mode)
image
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions