Repository: flutter
Issue: Markdown Parsing Error: Text that ends with a break line and a hyphen returns only a bullet point
Labels: package,team-ecosystem,has reproducible steps,P2,p: flutter_markdown,triaged-ecosystem,found in release: 3.24,found in release: 3.27

### Steps to reproduce

By using the latest version of the package `flutter_markdown: 0.7.4+1`
and using the class `MarkdownBody` and passing to the `data` parameter
a text that ends with a line break and a Hyphen, for example:
```
Best Regards,  
Sally McMahon
-
```

The result deletes the text previous to the Hyphen, and only shows a bullet point, the result will be:
```
•
```


### Expected results

Is expected to not delete the previous text to the hyphen,
```
Best Regards,  
Sally McMahon
•
```

### Actual results

it deletes the previous text to the hyphen

### Code sample

```
`const MarkdownBody(
      data: '''
Best Regards,  
Sally McMahon
-
''',
    );`

```

### Screenshots or Video

<details open>
With break line and hyphen the text is removed:


![Screenshot 2024-10-28 at 10 59 58](https://github.com/user-attachments/assets/0c48f4fb-fd24-43c1-84d5-36563d194415)


Without the break line the text is shown:


![Screenshot 2024-10-28 at 11 01 20](https://github.com/user-attachments/assets/07388c98-c755-4d03-8076-bce92872aac9)


</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.6, on macOS 14.7 23H124 darwin-arm64, locale en-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 15.4)
    ✗ Unable to get list of installed Simulator runtimes.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] IntelliJ IDEA Community Edition (version 2023.2.5)
[✓] VS Code (version 1.94.2)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.
luis.garcia@MAC-LGARCIA lodgify-flutter % flutter doctor -v
[✓] Flutter (Channel stable, 3.19.6, on macOS 14.7 23H124 darwin-arm64, locale en-ES)
    • Flutter version 3.19.6 on channel stable at /opt/homebrew/Caskroom/flutter/3.16.5/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (6 months ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/luis.garcia/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    ✗ Unable to get list of installed Simulator runtimes.
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] IntelliJ IDEA Community Edition (version 2023.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.94.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.98.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 14 (API 34) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS 14.7 23H124 darwin-arm64
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 130.0.6723.70

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

</details>