Repository navigation
Add opt-in control for chat markdown markup visibility - #267
Merged
Merged
Conversation
Introduce `eca-chat-hide-markdown-markup` so users who see fenced code blocks jump while typing or streaming can keep markdown fences/backticks visible without changing the default chat rendering behavior. Apply the same visibility setting to table helper buffers so table width measurement and `eca-table-open` stay consistent with chat display. Add focused tests and document the option in the README and changelog. 🤖 Generated with [ECA](https://eca.dev) (openai/gpt-5.5 - xhigh) Co-Authored-By: eca-agent <git@eca.dev>
Member
|
@itkonen I wonder if we need this, because we already can: (add-hook 'eca-chat-mode-hook
(lambda () (remove-from-invisibility-spec 'markdown-markup)))and |
Contributor
Author
|
Yes, that works fine and is nearly equivalent. One minor problem is that tables get misaligned if cells contain visible markup But true, I don't know how many people prefer keeping code blocks visible, so I'm not sure if the extra lines and complexity are worth it. |
ericdallo
approved these changes
Jul 8, 2026
ericdallo
left a comment
Member
There was a problem hiding this comment.
I see, I'm approving this as the code to maintain is considerably simple, so not a big deal from my POV, thanks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new option to disable code markup hiding.
With
eca-chat-hide-markdown-markupset tonilmost markdown content (e.g. headings and lists) are shown without markup but code inline code and blocks blocks show inside backticks.Personally I prefer this because it reveals the language label of code blocks. Furthermore it makes copy-pasting code easier, because, when markup is hidden, backticks randomly get copied along with code.
AI Summary
Adds
eca-chat-hide-markdown-markup, a new chat display option that controls whether markdown markup is hidden in ECA chat buffers.The default preserves the current behavior:
Users who prefer to see markdown syntax can set:
This keeps markdown fences, backticks, and other markup visible while retaining the existing markdown rendering setup.
Details
This change:
eca-chat-hide-markdown-markup;eca-table-openstay consistent with chat rendering;Motivation
Some users prefer seeing the original markdown syntax in chat buffers, especially around fenced code blocks and inline code. This option makes that behavior configurable without changing the default presentation for existing users.
Testing
Added focused tests covering:
eca-table-openrespecting the option in the dedicated table buffer.Local verification:
git diff --check origin/master...HEAD