Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Runar Løseth 11 posts 92 karma points
    Jun 22, 2022 @ 12:35
    Runar Løseth
    0

    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:

    image 1: Github code example

    image 2: Umbraco code example

    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...

  • 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.

Please Sign in or register to post replies