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

Dash breaks code block display #45

Open
silopolis opened this issue Nov 13, 2023 · 0 comments
Open

Dash breaks code block display #45

silopolis opened this issue Nov 13, 2023 · 0 comments

Comments

@silopolis
Copy link

silopolis commented Nov 13, 2023

A dash as the first non-blank character somehow breaks display/indentation of that line in "edit mode".

Here is a screenshot of trying to edit some YAML code.

indent_before
indent_with_dash_space
indent_with_more_spaces
indent_with_more_spaces_in_viewer
indent_with_more_spaces_in_rendered_block

Each line "starting" with a - (a dash and a space) is shifted left (collision with list stuff?) as soon as the space is added.
Moreover, the display is shifted one step further to the left for each space added at the beginning of the line or between the dash and the rest of the line content.

Edit: Also, highlight.js seems broken too as you can see in the last capture.

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