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

Incorrect code indentation in quote block #6071

Open
3 tasks done
HoeYeungHo opened this issue Jun 7, 2024 · 0 comments
Open
3 tasks done

Incorrect code indentation in quote block #6071

HoeYeungHo opened this issue Jun 7, 2024 · 0 comments

Comments

@HoeYeungHo
Copy link

  • Searched existing issues to avoid creating duplicates.

  • 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.

  • 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:
错误1

Method 2:
错误2_1

Method for generating correct indentation:
20240607_202423_1

Desktop (please complete the following information):

  • Windows 11 23H2

Typora Version

  • Typora 1.9.2-beta(Similar errors occur in many versions)
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

No branches or pull requests

1 participant