•  
      request #20565 Markdown preview does not always render mermaid diagrams
    Infos
    #20565
    Nicolas Terray (nterray)
    2021-03-31 10:03
    2021-03-31 09:55
    22157
    Details
    Markdown preview does not always render mermaid diagrams

    Since git #tuleap/stable/944fd4f2ab61999408f2b1e06dba5b95fd7ab3d6, mermaid diagrams and syntax highlighting blocks are rendered when the user hit the preview button of the editor in the artifact.

    However, it only works when the corresponding assets are already loaded on the page (the artifact already contains such blocks).

    We should find a way to dynamically load the assets when needed, or always load them on the page.

    Trackers
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Verified
    Empty
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2021-03-31 10:03

    We should find a way to dynamically load the assets when needed

    This is not going to be possible (at least not in a clean way). Always loading the custom elements is probably the way to go here. Their sizes is quite limited since we load Prism and Mermaid asynchronously.


    • Status changed from New to Verified