Open buschhardtt opened 3 months ago
Is there a reason for putting the markdown in a template, and not just in the markdown node itself?
No, but I use the markdown node. See
"id": "c61f4317ad20f535",
"type": "ui-markdown",...
I have a complete markdown string from somewhere (e.g. database) and would present that on dashboard. Is this possible? Thank You
Yep, you can just do:
{{ msg?.payload }}
in your Markdown template, pass the markdown via msg.payload
and it'll render. See Docs
Hello Joe, I use @flowfuse/node-red-dashboard 1.13 and it will not run.
Thank You very much
Thanks for the extra detail @buschhardtt - remembering now that we have an issue with rendering injected markdown: https://github.com/FlowFuse/node-red-dashboard/issues/615
I'll get @gayanSandamal to take a look at this more actively, as fixing this would close out both issues, and make ui-markdown
considerably more useful.
The challenge is, we run the content through the markdown parser first, then any injected content (which can come at any time) is placed into the {{ }}
placeholders, but not re-parsed again
Current Behavior
Content shows as text
Expected Behavior
Content shows as markdown
Steps To Reproduce
Example:
Environment
Have you provided an initial effort estimate for this issue?
I am not a FlowFuse team member