gonzalezreal / swift-markdown-ui

Display and customize Markdown text in SwiftUI
MIT License
2.25k stars 267 forks source link

render text too height #250

Closed yonghuming closed 10 months ago

yonghuming commented 10 months ago

Thank you for contributing to MarkdownUI!

Before you submit an issue, please complete the report with all the relevant details for your bug and go through every item in the checklist.

Describe the bug the Markdown view is too high

image
//
//  ContentView.swift
//  MD3
//
//  Created by meng xianlang on 2023/8/17.
//

import SwiftUI
import MarkdownUI

struct ContentView: View {
    let markdownString = """
      ## Try MarkdownUI

      **MarkdownUI** is a native Markdown renderer for SwiftUI
      compatible with the
      [GitHub Flavored Markdown Spec](https://github.github.com/gfm/).
      """

    var body: some View {
      Markdown(markdownString)
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

Checklist

Steps to reproduce Explanation of how to reproduce the incorrect behavior. This could include an attached project, a link to code, or a Markdown-formatted text exhibiting the issue.

  1. ...

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Version information

Additional context Add any other context about the problem here.

gonzalezreal commented 10 months ago

Closing due to unclear and incomplete report.

yonghuming commented 10 months ago

您好,邮件已经收到