-
-
Notifications
You must be signed in to change notification settings - Fork 25
Link always gets parsed on new line #108
Comments
@davidraijmakers That looks like a bug in the parser. I'll get this fixed as soon as possible, hopefully, this evening but if not definitely tomorrow evening. Do you have the deltas you used to generate the HTML, that way I can add it to my test suite? |
deltas.txt |
David Sorry, I've spent a little while looking at this and I can't seem to replicate the issue. When I use the supplied deltas with v3.15 I get the below, I'm not getting the link on a new line, it is within the first paragraph <--Generated by 3.15--> <p>Wijzigingen die <span style="color: #24372e;">uiterlijk 20 november 2018 </span>bij ons zijn binnengekomen, worden nog verwerkt in release 18.10 op 12 december 2018. Wijzigingen in CROHO (zoals nieuwe opleidingen) dienen ook uiterlijk 20 november door u te zijn ingevoerd om meegenomen te worden in de release van december 2018.</p> Can you dump the HTML generated by my parser directly after the call to It looks like you have something else parsing the content before generating the HTML. In your screenshot the link is I have a demo site at https://www.transmute-coffee.com/php-quill-renderer.php#demo - If you can replicate the issue there and send me the deltas or send through a script that shows the error I'd be more than happy to take a look but at the moment I can't really do anything. |
I get the same one, it looks I removed some content before it that might have caused the problem. Here are the new deltas. There are links on 2 lines that are being shown in the editor on the same line. I'll add some pictures for you to understand it as well as it is Dutch. |
P.S. I've tested it in the test link that you send me and this also is being shown wrong in the preview. |
Do you maybe have time to look at this issue again? |
Hi David, thank you for the new deltas. Which image is correct? I'm guessing the first one is what you entered into the Quill editor and the second is what was generated by my library? I haven't the time to look at this today but will Tuesday evening, apologies for the delay getting back to you, been busy with other work. |
The https://user-images.githubusercontent.com/4717921/49943840-397b0a00-fee9-11e8-819d-1dd005833150.png is the correct one (or how it should be shown). But on https://user-images.githubusercontent.com/4717921/49943839-397b0a00-fee9-11e8-919c-7734a186f6a4.png you can see that: Basically all the links at the bottom of the deltas are being shown on a new line where they shouldn't. |
David I think I've managed to work out the problem. If there is a link in or close to a heading the parser gets confused, I have now got a couple of failing tests and am working on a fix, please keep an eye on this ticket for updates. |
Allright, good luck! |
Can you give me an update or estimation when the update is going to be pushed? |
David I'm working on it, there are updates in the At the moment there is one failing test which is stopping the release, links within a header don't render correctly, links at the end of a header render correctly. I'm working on paid projects at the moment, this is a side project I work on when I have free time, I'll hopefully get to it soon but can't give you a specific date, it could be tomorrow, it could be next week. You are welcome to try the branch listed above, it might work for you. |
For security reasons we can't implement dev versions. I'll wait till the update has been pushed. Good luck! |
* Added first failing test for #108
* Resolved #108 * Added davidraijmakers to credits for reporting bug
Closed. Resolved in v3.17.0, will be released shortly. |
I am using the following versions:
"deanblackborough/php-quill-renderer": "^3.15",
"quill": "^1.3.6",
And i am trying to parse the following in the editor:
This has a link on the same line, on the second line a change of color in the text. The output of the quill javascript contents are the following:
This shows that the 'contactformulier' link is added, but also the color change on the next line. I save this in the database but when i render it, it renders like this:
The link is always on a new line. I am using the following code to render the deltas:
`$parser = new HtmlParser();
$renderer = new HtmlRenderer();
Is there something i am doing wrong? Or is this something that can be changed?
The text was updated successfully, but these errors were encountered: