MarkdownTextView
MarkdownTextView copied to clipboard
How to display a proper bullet list?
I am trying to figure out how to display a simple bullet list with MarkdownTextView. I've tried several combinations of strings and can't get any of them to display the list correctly. Got any tips to make this work?
You need to add in-string line breaks with \n since the line breaks in your code won't reflect that in the actual string.
Yeah, I've tried that also. Here are two other attempts. It seems to double-bullet the list when I do this.
Interesting. Is this just on Android? What versions of Android are you seeing this? FYI, this class is the culprit for causing issues with the list and is up for some major refactoring since it is a port from a Java class with a few adjustments: https://github.com/SuavePirate/MarkdownTextView/blob/master/src/Forms/SPControls.MarkdownTextView/SPControls.MarkdownTextView.Droid/HtmlTagHandler.cs
The
- and
- handling on Android is not built into the FormattedText set up, so it takes a bunch of custom logic to work it in, so if I can't get to fixing this in time, I would suggest breaking that one out to find your issue.
It's also worth noting that I'm rebuilding this control with a whole new approach now that it has started picking up popularity to make it more customizable, faster, and up to what I expect from it.