-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flickering issue happening. #447
Comments
Hi @suhail-ak-2, Could you provide a reproduction example? |
|
@jfcere pipe is using here |
@suhail-ak-2 Have you resolved the issue? as I am facing the same issue |
Still waiting for a working reproduction sample (GitHub repo, stackblitz, code sandbox, etc), providing a code snippet is not enough. |
Mainly, this is happening when data is rendering in streaming in the List format. |
@jfcere please check this below stackblitz url for reproduction |
Thank you @suhail-ak-2 , for provide sample code, @jfcere , Did you got the chance to take a look? |
@RonakSoniEIC Yes issue still exist i tried with latest version as well. |
@avelenivius , You mean we have to change in the markdown code itself. Thank you |
@RonakSoniEIC no, what I meant is, that the algorithm of splitting words by using the whitespace character (
These situations are something, that You should rather avoid, as it leads to the side effects, which you consider to be a fault of the library - that's my opinion. My suggestion is, that You invest a bit of time into debugging the algorithm in those cases and find a way to improve it. The markdown string itself may be alright (can't say however, as I don't want to invest my time into looking through it), it's the algorithm of rendering word by word, that works incorrectly |
@RonakSoniEIC you are right, this issue reproduce only at the time of streaming. |
Hi, how did you handle this issue? |
@jfcere @avelenivius , the main issue is that whenever we update the data bound to Markdown, it recompiles everything into HTML instead of just recompiling the last inner HTML element. This inefficiency is becoming problematic for rendering real-time data and is also causing flickering issues. Take a look at this library; it only renders the last HTML element. here is the working codepen version inspect the rendering and see. Is there any way we can achieve similar functionality? |
@suhail-ak-2 Did you find any solution ?? |
Angular 14.0.3
ngx markdown 15.0.0-next.0
Doing the streaming of text from server to angular application. I am using markdown to render as html.. For li tag flickering is happening. Large bold text is coming for few secs fading in and out
The text was updated successfully, but these errors were encountered: