这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: collapse long code block #640

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

Merged
merged 1 commit into from
May 26, 2025
Merged

fix: collapse long code block #640

merged 1 commit into from
May 26, 2025

Conversation

poppingmoon
Copy link
Owner

Changed to collapse code blocks with a lot of newlines.

There is no option for HighlightView to limit the lines, so the whole block was displayed even if maxLine is specified for Mfm. With this change, if a code block has more newlines than the threshold, Mfm is clipped by height in the same manner as #623.

@poppingmoon poppingmoon merged commit 5cdb380 into main May 26, 2025
14 checks passed
@poppingmoon poppingmoon deleted the collapse-code-block branch May 26, 2025 12:05
@poppingmoon poppingmoon mentioned this pull request Jun 12, 2025
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

Successfully merging this pull request may close these issues.

1 participant