Skip to content
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

Dynamic data rendering with code block creates a flickering in dom #2751

Closed
francissebin-2hats opened this issue Mar 13, 2023 · 3 comments · Fixed by #2756
Closed

Dynamic data rendering with code block creates a flickering in dom #2751

francissebin-2hats opened this issue Mar 13, 2023 · 3 comments · Fixed by #2756

Comments

@francissebin-2hats
Copy link

Marked version:
4.2.12
Describe the bug
Dynamic data rendering with code block creates a flickering in the dom.

To Reproduce
Steps to reproduce the behavior:

  1. Marked Demo

consider if the code block mentioned in the above link is inside a variable and the content is printing one by one. (you can reproduce this by typing a code block in this demo link) you can see a dom flickering issue because it is printing P tag first then after each new line it change to code block.

Expected behavior
It should work without any dom issue

@UziTech
Copy link
Member

UziTech commented Mar 13, 2023

Can you show a video of this behavior? I don't see it flickering.

@UziTech
Copy link
Member

UziTech commented Mar 14, 2023

I see the issue. Fenced code blocks currently require a newline at the end of the markdown if there are no closing ticks. This should be fixed by #2756

marked demo
commonmark demo

@francissebin-2hats
Copy link
Author

Thankyou, I hope it will be merged soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants