question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bullet points not showing when custom SpannableConfiguration is passed to setMarkDown method

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
S-Bartfastcommented, Jan 30, 2019

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 😉

1reaction
kannans2commented, Dec 10, 2018

@noties Oh!! Really Sorry… My Bad…Didn’t notice that!! It’s Working!!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found