Skip to content

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

@hyungtaecf

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

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