You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a use-case where we would like to have a user-defined setting that affects the markdown rendering. I was able to use the MarkdownService.renderer to change the behavior of rendering certain elements when those settings change; however, the markdown does not re-render until the source markdown changes. My workaround was to append the markdown with a zero-width space character, then use a setTimeout to remove it. It would be nicer, though, if when I make changes to the renderer, that it would re-render automatically.
We have a use-case where we would like to have a user-defined setting that affects the markdown rendering. I was able to use the
MarkdownService.renderer
to change the behavior of rendering certain elements when those settings change; however, the markdown does not re-render until the source markdown changes. My workaround was to append the markdown with a zero-width space character, then use asetTimeout
to remove it. It would be nicer, though, if when I make changes to the renderer, that it would re-render automatically.Example StackBlitz: https://stackblitz.com/edit/ngx-markdown-g2deyn?file=src%2Fapp%2Fapp.component.ts
The text was updated successfully, but these errors were encountered: