vue3-markdown-it icon indicating copy to clipboard operation
vue3-markdown-it copied to clipboard

Custom event for render finish

Open micahlt opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. In my use case, I need to add target="_blank" attributes to all of the <a> elements in the <Markdown> component.

Describe the solution you'd like It would be very helpful to fire a custom rendered event that would allow the parent component to know when the render is complete so that syntax could look like this:

<Markdown :source="source" @rendered="myFunction" />

Describe alternatives you've considered Nothing as good as adding a custom event. I'm open to adding this feature in a pull request if that's an option.

micahlt avatar Jan 01 '22 22:01 micahlt