Skip to content
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

SpannableStringBuilderReversed issue #445

Open
YvesCheung opened this issue Jun 27, 2023 · 0 comments · May be fixed by #446
Open

SpannableStringBuilderReversed issue #445

YvesCheung opened this issue Jun 27, 2023 · 0 comments · May be fixed by #446

Comments

@YvesCheung
Copy link

YvesCheung commented Jun 27, 2023

  • Markwon version: 4.6.0

Reproduce markdown:
1234<span style="color:#ff0000">5678<span style="color:#ffff00">9012</span>3456</span>7890

Expect: there are 2 colors in the string.
Actual: only 1 color #ff0000 shown.

Cause: SpannableBuilder reverse the order of setSpan, so that outer effect #ff0000 will override the inner effect #ffff00

@YvesCheung YvesCheung linked a pull request Jun 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant