Git Product home page Git Product logo

Comments (6)

jhchen avatar jhchen commented on August 16, 2024

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.

mikeallen811 avatar mikeallen811 commented on August 16, 2024

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.

mikeallen811 avatar mikeallen811 commented on August 16, 2024

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.

jhchen avatar jhchen commented on August 16, 2024

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.

mikeallen811 avatar mikeallen811 commented on August 16, 2024

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.

keval-codiste avatar keval-codiste commented on August 16, 2024

@mikeallen811

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.