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

Mobile,Desktop: Fixes #9971: Fix auto-indentation in some types of code blocks #9972

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Feb 21, 2024

Summary

Fixes #9971 by registering a language that provides only auto-indentation when the type of a code block is otherwise unrecognised.

Notes

  • This does not affect autoindent behavior in code blocks with no specified type.
  • This pull request has been tested manually on desktop and mobile by 1) creating a mermaid code block with indentation and 2) pressing enter at the end of an indented line. It has been verified that the next line is auto-indented.

@laurent22 laurent22 merged commit 2e3783f into laurent22:dev Feb 22, 2024
10 checks passed
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.

Beta editor: Auto-indent doesn't work in code blocks with an unknown language type (including mermaid)
2 participants