typora-issues
typora-issues copied to clipboard
Incorrect code indentation in quote block
-
[x] Searched existing issues to avoid creating duplicates.
-
[x] Confirmed that it can be reproduced in built-in themes without customized css.
If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.
-
[x] Searched http://support.typora.io/
Describe the bug
Using code blocks in quote blocks may cause code indentation errors. (I'm not sure if this only occurs in quote blocks, but I do have similar errors in many files.)
To Reproduce
- Method 1: Enter code in the quote block, turn on source code mode, close Typora, and open it again. Indenting causes errors
- Method 2: Enter code in the quote block, close Typora, and reopen it. In the vast majority of cases, indentation can be displayed normally. However, after a period of time, or if I make a copy of this normal file, the indentation cannot be displayed properly (may be related to caching?)
Their indentation in the source code is only 4 spaces.
If I want to produce normal results, the current approach I can implement is to delete the code for the incorrect file (which must be the file with the error) and re-enter it to obtain the correct display (there are 6 spaces in the source code)
Screenshots / Screencasts
Method 1:
Method 2:
Method for generating correct indentation:
Desktop (please complete the following information):
- Windows 11 23H2
Typora Version
- Typora 1.9.2-beta(Similar errors occur in many versions)