How to use a markdown node to display string coming from input?

Hi there,

I just want to use the Markdown node for displaying things. As a start, I'm trying to use an Injection node to display a string after triggering. However, it's not working. Do you have any ideas about that? Thanks!

It is very difficult to say as you supply no example of what you have tried to do.

This works for me

[{"id":"c4c02c14285b9be3","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"striing is here","payloadType":"str","x":490,"y":5620,"wires":[["c71d9fe6005afeef"]]},{"id":"c71d9fe6005afeef","type":"ui-markdown","z":"d1395164b4eec73e","group":"9d83cd8b3d5ee33c","name":"","order":1,"width":0,"height":0,"content":"{{ msg.payload}}","className":"","x":690,"y":5620,"wires":[["7802d00f448590ad"]]},{"id":"7802d00f448590ad","type":"debug","z":"d1395164b4eec73e","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":860,"y":5620,"wires":[]},{"id":"9d83cd8b3d5ee33c","type":"ui-group","name":"Group1","page":"c694d0ebe0d2b702","width":"6","height":"1","order":1,"showTitle":true,"className":"","visible":"true","disabled":"false","groupType":"default"},{"id":"c694d0ebe0d2b702","type":"ui-page","name":"Page1","ui":"1805777f90e92057","path":"/page1","icon":"home","layout":"grid","theme":"a965ccfef139317a","breakpoints":[{"name":"Default","px":0,"cols":3},{"name":"Tablet","px":576,"cols":6},{"name":"Small Desktop","px":768,"cols":9},{"name":"Desktop","px":1024,"cols":12}],"order":1,"className":"","visible":true,"disabled":false},{"id":"1805777f90e92057","type":"ui-base","name":"dashboard ","path":"/dashboard","appIcon":"","includeClientData":true,"acceptsClientConfig":["ui-notification","ui-control"],"showPathInSidebar":false,"titleBarStyle":"default","showReconnectNotification":false,"notificationDisplayTime":"5","showDisconnectNotification":false},{"id":"a965ccfef139317a","type":"ui-theme","name":"HN Theme","colors":{"surface":"#5c5c5c","primary":"#00fdff","bgPage":"#383838","groupBg":"#4f4f4f","groupOutline":"#858585"},"sizes":{"pagePadding":"12px","groupGap":"12px","groupBorderRadius":"4px","widgetGap":"12px"}}]

Maybe you can supply what has not worked for you.

1 Like

Thx! Your exmpl did help!

ok, a small question. In you example: can msg.payload be markdown language instead of string and will it be displayed formatted as this ?

Not as far as I know and there does not seem to be a dynamic property either

There is an open issue. you can add to the conversation here Markdown-UI & Template-UI node do not process HTML\Markdown sent to it by NR Template node · Issue #615 · FlowFuse/node-red-dashboard · GitHub

1 Like