Comments (6)
Deltas are just a format your can use to express rich text of which there are multiple ways one can use to express nested lists. If you are looking for info on how Quill choses to express it take a look at https://quilljs.com/docs/delta/#line-formatting and play around with the interactive playground to try things out.
from delta.
I understand what the delta is. I'm just saying, read the delta. Please explain to me how you can logically determine one list from the other. You can't. The end result when rendered in QuillJS is ALMOST working, but even it has its problems.
There is no logical conclusion you can make reading the delta of where one list ends and the other starts. And if you can't make that determination by merely reading the data, how do you expect to logically code for that? You can't.
I'm also not arguing Nested lists. I got them working just fine. The indent's gave me all the information i needed to cycle through numbering strategies etc. But there is no way I can know definitively when i've went from one list to another. So back end .. i don't know when to "new List()" #2 ... i have to assume everything in list 2 goes with list 1.
I think you need to look at this deeper and don't just dismiss it because you think you're right. Because you aren't. and until you can prove it to me otherwise. That is my stance .. and i'm going to keep reporting this problem.
from delta.
Something else to consider ... this problem i'm citing here, might also have something to do with the other problem i posted: slab/quill#2221. I think that QuillJS might make too many assumptions with regards to the lists. And it would have to make those assumptions, because there is no alternative, there is missing delta data critical to knowing that the list has ended.
I will admit that I haven't looked at the code for QuillJS to know if they are doing what I assume they are doing, but if they are, then it isn't concrete enough to make extensible to other renderers.
from delta.
The statements you are making contain multiple false assumptions and/or misunderstandings that would benefit from re-reading the docs I have already linked.
from delta.
There were indeed some bad assumptions that I was making. I have resolved the issues. I'm sorry if I was a being a bit obtuse, but I was running on like 72 hours straight with very little sleep. I've since had time to reflect and reread your documentation and I finally arrived at an understanding and now have it working perfectly. Thank you !
from delta.
Can you explain how you resolved this issue? I am also having the same issue while converting Delta to HTML manually.
I am unable to determine whether the list has ended or not.
from delta.
Related Issues (20)
- The types are wrong
- Release the package as es6 module HOT 1
- Format of a multi-line block quote?
- How to find the effective length of a Delta
- Quill delta / Angular 13 / Webpack error HOT 3
- Supporting nested quotes and lists HOT 1
- Question: how to convert Delta to DeltaStatic? HOT 1
- Definition of "document" vs "non-document" delta HOT 1
- Any plans for the ES version? HOT 5
- Delta `alignment` attribute is ambiguous and doesn't have the right value HOT 1
- Word-level diff behavior HOT 3
- Get incorrect delta by Delta.transform HOT 1
- Generic `Delta<T>`? HOT 5
- Delta doesn't insert empty line
- Bug in production from using Esnext + vite HOT 2
- can't diff embed bolt
- RFC:Nested combinations
- Feature request: an operation to convert Delta format to html HOT 2
- Request support for ESM HOT 3
- I packed quill-delta with a webpack but can't use new Delta() HOT 1
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 delta.