-
Notifications
You must be signed in to change notification settings - Fork 17
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
[Bug]: Tag(s) added after page load do not render #5
Comments
Hi! I also run into this issue playing around. One hypothetical way to solve this could be:
To apply the mentioned idea, registering the component as a I mention that because having a quick look at the code I was surprised to see that the |
To be frankly honest - I was looking for a solution to add Markdown support to another repo under MarketingPipeline. I thought instead of wasting time adding Markdown to future websites I might want markdown support on it'd be better to take an approach at trying to solve a way to just add it whenever needed. Myself (being a noob in JavaScript) - grabbed a parser. Added a tag with no impression it would work - but I figured, I could try right? And it did - so I just rolled with it. I thought it was a more than cool & useful concept - and thought it might solve someone else's problem! But - there is obviously lot's of room for improvement on this project hence released under the GPL-3.0 license so people with more experience like yourself can give input / feedback & support that benefits all the user's of Markdown-Tag |
Currently porting MarkdownTag to a WebComponent. |
This is out of my skill set as of right now - but dropping this here to help you. ShowDown
Please refer to the wiki article Markdown's XSS Vulnerability (and how to mitigate it) for more information. Marked
The added discussion as well - I am hoping you can drop input into What would the preferred Markdown Tag be? Tho based on your fork I think I know your input hahah! Tho would be great if we could get some more input from others before making the final decision. Awesome work as well! ps; you have been invited to this repo if you didn't join already. |
I'm using DOMPurify to sanitize the HTML, and is called on every parser before generating the HTML from the markdown. |
@tomyo - we are actually in the process of updating with a web component if by chance you are looking for something to contribute too! |
This issue has been marked as resolved. To render changes / elements added call the function like so -
|
Contact Details
No response
What happened?
When inserting a tag into a page after page load - the other tags do not render.
Reported first - Is there a way to get an existing element to render new markdown that wasn't initially there? · Issue #3
What type of browser are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
Code to produce this issue.
The text was updated successfully, but these errors were encountered: