-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Bullet point circles don't indent with encompassing LeadingMarginSpan #10
Comments
Hey @GlennNZ ! Yeah, it's a nasty thing. I remember why I had to pass current block indent to spans directly - exactly because |
Oh, interesting. I didn't know that the draw order could be set.
and settings it's flag param to That will at least allow the BulletListItemSpan::drawLeadingMargin to get an x value but the circle drawing would have to be modified so that it has |
Hey! I've looked into this thing and come up with a simple solution - just to revert supplied spans. Right now it's in pull request #11 . In short: Markwon applies all the spans in reverted order automatically (this resolves the wrong |
I've noticed that the bullet points from a Markdown render don't indent when they're encompassed by a LeadingMarginSpan. The text of the bullet points will indent correctly though. The circles appear to be absolutely positioned to the left margin.
The following code should should the issue.
Should BulletListItemSpan::drawLeadingMargin be receiving an indented x value? It will always have zero with this example.
The text was updated successfully, but these errors were encountered: