Don't ask Delta question here - ask elsewhere! #943
Replies: 19 comments 2 replies
-
|
I am still unsure what is needed |
Beta Was this translation helpful? Give feedback.
-
|
What do you mean by heading? |
Beta Was this translation helpful? Give feedback.
-
|
H1,H2 and H3 Brother |
Beta Was this translation helpful? Give feedback.
-
|
Look for |
Beta Was this translation helpful? Give feedback.
-
|
the pattern is |
Beta Was this translation helpful? Give feedback.
-
[{"insert":"Hello "},{"insert":"World","attributes":{"bold":true}},{"insert":"\nIt's heading"},{"insert":"\n","attributes":{"header":1}},{"insert":"\n"}] Brother see this output is complex to predict which is heading [h1,h2,h3] I wanna output like header/heading[h1,h2,h3] have a in one pair like this [{"insert":"Hello "},{"insert":"World","attributes":{"bold":true}},{"insert":"It's heading","attributes":{"header":1}},{"insert":"\n"}] |
Beta Was this translation helpful? Give feedback.
-
|
Again the pattern is |
Beta Was this translation helpful? Give feedback.
-
|
Look for |
Beta Was this translation helpful? Give feedback.
-
|
Brother yeah it's easy when we have only heading[h1,h2,h3] but it is complex when we apply bold, italic,etc styles on headings |
Beta Was this translation helpful? Give feedback.
-
|
the block still ends with |
Beta Was this translation helpful? Give feedback.
-
|
brother main problem is how we can detect that how much text is heading in map key |
Beta Was this translation helpful? Give feedback.
-
|
the block starts with |
Beta Was this translation helpful? Give feedback.
-
|
ok brother great, but here one more problem occurs how we can detect that \n is refer for a block or user press enter for a new line |
Beta Was this translation helpful? Give feedback.
-
|
If you see |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/secanonm/delta_to_html/blob/master/lib/src/encode.dart |
Beta Was this translation helpful? Give feedback.
-
|
brother can you please tell me how to search upstream '\n' in in map key |
Beta Was this translation helpful? Give feedback.
-
|
This has nothing to do with this repo and I am going to close this. |
Beta Was this translation helpful? Give feedback.
-
|
This repo uses delta does not mean you should ask here! |
Beta Was this translation helpful? Give feedback.
-
|
GO check elsewhere like https://github.com/dchenk/go-render-quill |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Brother,
First of all, thank you very much you are a great person.
Brother, I also little bit contributed to your project by creating the delta to HTML library
but I face some problems with block elements. Can you please help me to improve delta to HTML features please make simple delta output like inline elements without "\n"
Problem 1: delta output return with "\n" hard to predict heading.
output
[{"insert":"Hello "},{"insert":"World","attributes":{"bold":true}},{"insert":"\nIt's heading"},{"insert":"\n","attributes":{"header":1}},{"insert":"\n"}]Problem 2: when we used inline style on the heading, its returned complex delta output. the heading is unpredictable.
output
[{"insert":"Hello "},{"insert":"World","attributes":{"bold":true}},{"insert":"\nIt's "},{"insert":"heading","attributes":{"underline":true}},{"insert":"\n","attributes":{"header":1}},{"insert":"\n"}]Can you please explain your delta output or make it simple
Thank you
Beta Was this translation helpful? Give feedback.
All reactions