Comments (3)
@GlennNZ It was actually an easy fix, changes are merged into develop
from markwon.
Hey!
I have looked into it and it's definitely a bug. Let me explain: there is a simple check in some of the spans, something like this:
public void drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) {
if (this.start != start) {
return;
}
}
this.start
is a value that is passed by AST visitor indicating current parsing position. As there are multiple parsing operations, each line will hold own indexes (starting with 0
), but when all lines are set to a TextView, TextView will pass own indexes (starting with the very first character). So, this explains why list is rendered correctly if applied first.
There is such a check in the first place in order to not draw a bullet on each line if a line is too big and was split (span's drawLeadingMargin
would be called for each such line).
Thanks for the issue, I will think of what can be done with it for the next release π
from markwon.
We just got your develop branch going with our project and verified that all is well. Thanks for that.
from markwon.
Related Issues (20)
- display image from couchDb HOT 1
- Latex matrix not rendered when I enable R8/Progaurd HOT 3
- editor plugin doesn't highlight the '~' syntax
- If the width of the TextView is set to wrap_content, the table cannot be displayed.
- about MarkwonAdapter
- Custom plugin: Asynchronously change text
- Image covering content HOT 1
- How to escape German gender diversity "*" within words? (Without a special escape character!)
- How to disable ListItem (BulletList, OrderedList) HOT 1
- <strong> 解ζδΈδΊ
- Getting Started simple markdown doesn't work
- Color / underline for a text
- How to add vertical margin to an image? HOT 2
- Last paragraph has weird bottom margin
- None
- Single new line is ignored. HOT 2
- [Question] Change editor theme
- "%" shown are garbage in the app
- Hello @agnostic-apollo , I find that this method is no longer effective HOT 1
- TableEntry cannot use textLayout interface
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markwon.