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] Indented code blocks not highlighted in edit panel #3226

Open
polter-rnd opened this issue Feb 2, 2025 · 1 comment
Open

[BUG] Indented code blocks not highlighted in edit panel #3226

polter-rnd opened this issue Feb 2, 2025 · 1 comment

Comments

@polter-rnd
Copy link

polter-rnd commented Feb 2, 2025

Indented code blocks (e.g., within bullet lists) are not receiving syntax highlighting in the edit panel, though they display correctly in the preview panel.

Expected behaviour

Indented code blocks should be highlighted in the edit panel, just like in the preview panel, ensuring consistency.

Actual behaviour

Image

Steps to reproduce

Example markdown file:

Without indentation all fine:

```bash
$ echo Hello world
```

But without indentation it's not highlighted in edit panel.

- See:

  ```bash
  $ echo Hello world 2
  ```
@polter-rnd polter-rnd changed the title [BUG] Indented code blocks are not highlighted in edit panel [BUG] Indented code blocks not highlighted in edit panel Feb 2, 2025
@pbek
Copy link
Owner

pbek commented Feb 2, 2025

You need to intend with at least 4 spaces.

Image

See: https://www.qownnotes.org/getting-started/markdown.html#_4-spaces-fence

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

No branches or pull requests

2 participants