Add simple markdown example flow

This commit is contained in:
Dave Conway-Jones 2019-07-09 21:07:26 +01:00
parent fb96e552c2
commit 52dcfdbd97
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
[{"id":"dda1a6d6.fe5f58","type":"markdown","z":"adc578f5.614308","name":"","x":390,"y":80,"wires":[["43620a8a.4c8054"]]},{"id":"16242d94.2f86d2","type":"inject","z":"adc578f5.614308","name":"","topic":"","payload":"**Hello** *world* that was `easy` ! ","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":80,"wires":[["371c8267.9a274e"]]},{"id":"43620a8a.4c8054","type":"ui_template","z":"adc578f5.614308","group":"86b1e7af.9ae1e8","name":"","order":1,"width":"6","height":"10","format":"<div id=\"nr-markdown\" style=\"font-family:helvetica neue,arial,helvetica,sans-serif; margin:12px\" ng-bind-html=\"msg.payload\">';","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":540,"y":80,"wires":[[]]},{"id":"371c8267.9a274e","type":"template","z":"adc578f5.614308","name":"","field":"payload","fieldType":"msg","format":"markdown","syntax":"mustache","template":"\n## Heading\n### Sub-sub-heading\n\n**Hello** World ! that was `easy` ! \n*not* sure what the fuss is all about\n\n - we can create lists\n - of various things\n \nOr just text\n\nOr some glyphs (c) (tm) (r) &deg;C\n\n```\nor maybe a code block\n```\n\n### Tables\n\n| Name | Value |\n| ------ | ----- |\n| cat | miaow |\n| dog | woof |\n| cow | moo |","output":"str","x":240,"y":80,"wires":[["dda1a6d6.fe5f58"]]},{"id":"86b1e7af.9ae1e8","type":"ui_group","z":"","name":"Markdown","tab":"b73dd9da.7d7398","disp":true,"width":"6","collapse":false},{"id":"b73dd9da.7d7398","type":"ui_tab","z":"","name":"Markdown","icon":"dashboard","disabled":false,"hidden":false}]

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-markdown",
"version" : "0.1.0",
"version" : "0.1.1",
"description" : "A Node-RED node to convert a markdown string to html.",
"dependencies" : {
"markdown-it": "^8.4.2"