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

Color bleeding issue when folding headings whose content ends with a code block #854

Open
jamescherti opened this issue Nov 11, 2024 · 0 comments

Comments

@jamescherti
Copy link

jamescherti commented Nov 11, 2024

Expected Behavior

When folding headings, markdown-mode should display the folded heading without any color bleeding.

Actual Behavior

There is Color bleeding that occurs when folding headings whose content end with a code block. The text color of the code block bleeds into the folded heading, causing the right side of folded lines to appear in the incorrect background color.

(By the way, just in case it can help you: Org mode version used to have the same issue; however, they seem to have fixed it by allowing users to set org-fontify-whole-block-delimiter-line to nil. It tested org version 9.7.14 and there is no color bleeding when headings whose content end with a code block are folded)

Before folding headings:
image

Here is the behavior after folding headings:
image

Steps to Reproduce

  1. Edit this markdown file:
# Heading 1
## Heading 2
Code:
```python
print("Hello world")
```
# Heading 1
```
code
code
code
code
code
```
  1. Evaluate the expression:
(hide-sublevels 1)

(if your theme does not change the background color of markdown code blocks, try using ef-themes or tomorrow-night-deepblue-theme.el.)

Backtrace

None

Software Versions

  • Markdown Mode: From Git on Thu Nov 7 12:49:39 2024 +0900 (6f59f72)
  • Emacs: 30.0.92
  • OS: Linux
@jamescherti jamescherti changed the title Color bleeding issue that occurs when folding headings whose content ends with a code block Color bleeding issue when folding headings whose content ends with a code block Nov 11, 2024
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