-
Notifications
You must be signed in to change notification settings - Fork 95
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
请问如何添加空行,已经试过连续的\n\n是不行的 #149
Comments
@DeveloperLx 你好,连续的\n被trim掉了,如果你需要实现这一效果的话,可能要自定义MarkdownGenerator对象,去解析markdown文件 目前github也是不支持连续\n的,你可以试一试下面这样
aaa aaa |
@asjqkkkk 意思是要这样写吗: |
@lucasjinreal 你好,只要是 \n,无论什么样的写法,最终都是会被trim掉的,所以可以参考我上面的做法: |
@asjqkkkk 可以给个例子吗,目前这个是刚需,因为LLM输出的\n有一些是必须展示的 |
@lucasjinreal 你好,个人时间有限,没有多余的精力为每个自定义需求的issue去编写示例,如果真的有这样的需求,还是建议阅读对应的代码,然后尝试去实现对应功能 #150 也是如此,不再赘述 |
@asjqkkkk 作者您好,现在不hack这个库,直接支持的多行的办法没有了吗?所有的\n看起来都会忽略 |
或许等下个版本我尝试添加方法来实现这个功能 |
@asjqkkkk I am also hoping for it now, it's ommit default by github, but might needed by others since messages in markdown without \n looks like messy |
建议建议提供一个开关,来控制是否trim连续的\n |
It could be better |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment(please complete the following information):
Please use
flutter doctor -v
to show your flutter environment, and add yourmarkdown_widget
version tooPlatform
Does the problem appear on the Web or on the Mobile?
Source data
Please provide a minimal source data that can help locating the problem
The text was updated successfully, but these errors were encountered: