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

**URL:** <https://discourse.nodered.org/t/how-to-use-a-markdown-node-to-display-string-coming-from-input/95874>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [8 March 2025 15:57 UTC](https://discourse.nodered.org/t/how-to-use-a-markdown-node-to-display-string-coming-from-input/95874 "2025-03-08T15:57:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [8 March 2025 15:57 UTC](https://discourse.nodered.org/t/how-to-use-a-markdown-node-to-display-string-coming-from-input/95874/1 "2025-03-08T15:57:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [8 March 2025 16:13 UTC](https://discourse.nodered.org/t/how-to-use-a-markdown-node-to-display-string-coming-from-input/95874/2 "2025-03-08T16:13:31Z")

</div>

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

This works for me

```auto
[{"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"}}]

```

> **[Markdown Viewer ui-markdown | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/nodes/widgets/ui-markdown.html)**
>
> Present text and documentation elegantly with ui-markdown viewer in Node-RED Dashboard 2.0.

Maybe you can supply what has not worked for you.

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [8 March 2025 16:17 UTC](https://discourse.nodered.org/t/how-to-use-a-markdown-node-to-display-string-coming-from-input/95874/3 "2025-03-08T16:17:03Z")

</div>

Thx! Your exmpl did help!

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [8 March 2025 16:33 UTC](https://discourse.nodered.org/t/how-to-use-a-markdown-node-to-display-string-coming-from-input/95874/4 "2025-03-08T16:33:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [8 March 2025 16:51 UTC](https://discourse.nodered.org/t/how-to-use-a-markdown-node-to-display-string-coming-from-input/95874/5 "2025-03-08T16:51:56Z")

</div>

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](https://github.com/FlowFuse/node-red-dashboard/issues/615)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 March 2025 16:52 UTC](https://discourse.nodered.org/t/how-to-use-a-markdown-node-to-display-string-coming-from-input/95874/6 "2025-03-22T16:52:01Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
