Describe the bug
When a markdown string contains multiple code blocks and if one of them contains more lines (e.g., 35+ lines of code), other code texts get truncated (with ... at the end of the text). See detailed repro steps below.
Checklist
[x] I can reproduce this issue with a vanilla SwiftUI project.
[x] I can reproduce this issue using the main branch of this package.
Steps to reproduce
Apply this sample text which contains a couple of code blocks with the last one being the longest to the Demo app CodeSyntaxHighlightView.
Expected behavior
All code should be fully visible and no extra top and bottom padding should be applied around the Markdown view. I suspect that the extra paddings are otherwise reserved for these hidden code blocks.
Screenshots
See truncated code texts with ... and extra vertical paddings.
Describe the bug When a markdown string contains multiple code blocks and if one of them contains more lines (e.g., 35+ lines of code), other code texts get truncated (with
...
at the end of the text). See detailed repro steps below.Checklist
main
branch of this package.Steps to reproduce Apply this sample text which contains a couple of code blocks with the last one being the longest to the Demo app
CodeSyntaxHighlightView
.Expected behavior All code should be fully visible and no extra top and bottom padding should be applied around the
Markdown
view. I suspect that the extra paddings are otherwise reserved for these hidden code blocks.Screenshots See truncated code texts with
...
and extra vertical paddings.https://github.com/gonzalezreal/swift-markdown-ui/assets/2663719/5f8a9301-e72c-4cb6-b1a6-598eb8cb629d
Version information