I'm trying to add some code examples via the Umbraco Markdown editor, but having some trouble with formatting. All the code that is rendered is rendered on a single line. The markdown in question comes from a github repo and is programatically added to Umbraco. In github the code displays just fine, same for any other online markdown parser I can find. Is there anything different in syntax in the Umbraco editor I'm not aware of?
Markdown code examples
I'm trying to add some code examples via the Umbraco Markdown editor, but having some trouble with formatting. All the code that is rendered is rendered on a single line. The markdown in question comes from a github repo and is programatically added to Umbraco. In github the code displays just fine, same for any other online markdown parser I can find. Is there anything different in syntax in the Umbraco editor I'm not aware of?
https://markdown-it.github.io/ vs Umbraco:
The full code example that is added to the markdown editor:
{ "resourceType": "xxx", "id": "xxx", "meta": { "extension": [ { "url": "xxx", "valueReference": { "reference": "xxx", "display": "xxx" } } ], "versionId": "xxx", "lastUpdated": "xxx" }, "identifier": [ { "system": "xxx", "value": "xxx" } ], "status": "xxx", "intent": "xxx", "category": [ { "coding": [ { "system": "xxx", "code": "xxx", "display": "xxx" } ] } ] }
Ironically it works here...
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.