Bullet points not showing when custom SpannableConfiguration is passed to setMarkDown method
See original GitHub issueI am new to this library, Sorry if this isn’t an issue or it might be a configuration issue!
When I use setMarkDown method with just a textview and String the bullet point is showing:
Markwon.setMarkdown(binding.markDownParser, configuration, "* first Bulletin")
However when I pass a SpannableConfiguration the bullet point stops showing.
` val latoTypeFace = ResourcesCompat.getFont(context!!, R.font.lato_regular)!!
val latoTypeFace = ResourcesCompat.getFont(context!!, R.font.lato_regular)!!
val textSizeMultipliers = floatArrayOf(1.5f, 1.5f, 1.5f, 1f, .5f, .25f)
var configuration: SpannableConfiguration = SpannableConfiguration.builder(context!!)
.theme(SpannableTheme.builder()
.codeBackgroundColor(ContextCompat.getColor(context!!, R.color.white))
.codeTextSize(activity!!.resources.getDimensionPixelSize(R.dimen.font_size_16))
.codeTypeface(latoTypeFace)
.headingTypeface(latoTypeFace)
.headingTextSizeMultipliers(textSizeMultipliers)
.build())
.build()
binding.markDownParser.setTextColor(ContextCompat.getColor(context!!, R.color.primary))
Markwon.setMarkdown(binding.markDownParser, configuration, "* first Bulletin")`
Bullet points not showing when custom SpannableConfiguration is passed to setMarkDown method.
Do I have to add anything to the SpannableConfiguration builder to fix this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Bullet points not showing and new bullet lists start in the ...
I'm using a Microsoft 365 suite (not sure if that means Word 2019) and when I want to start a new bulleted list...
Read more >Custom html bullet points not showing, only normal bullet ...
I have put in custom CSS to ensure that a custom bullet point IMG is shown on my ul and li. The IMG...
Read more >Bullet Points Not Showing | WordPress.org
I can't get bullet points to show in posts or pages anymore. Not sure what happened. ... To add custom CSS, Go to...
Read more >Bullet points don't display properly - show as boxes?!
This gives you a dedicated style for bullets, set up the way you like them. Do the same with List Number. 7) Then...
Read more >Add custom bullet points to text blocks and image blocks in ...
We'll start out with 7.1, looking at where the original bullet points are located in the structure of a text block, and how...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The name itself is fine, it’s more the very existence of the method that threw me.
Although it’s never advisable to change existing functionality too much I think it would have been more intuitive if the regular ‘builder’ had included the defaults automatically while a uniquely named building was without them. However, given it has already been implemented the way it has, possibly changing the code in the examples to use “builderWithDefaults(…)” instead will at least tip people off to the methods existence and I’m sure they will then be able to find the regular ‘build’ method of their own accord should they need it 😉
@noties Oh!! Really Sorry… My Bad…Didn’t notice that!! It’s Working!!