Skip to content

imgui_md code block render doesn't play with imgui_node_editor #281

@bgribble

Description

@bgribble

My app uses imgui_node_editor to build a diagram on a canvas. One of the types of diagram node is a text display (it's used for displaying comments and inline documentation about the diagram)

I have recently gotten imgui_mdto work as a markdown display, 🎉

It has some quirks which I am working around, but here is one that I think is an issue with the imgui_md_wrapper code that is part of the bindings: A code block (whether started with ``` or with a 4-space indent) displays the formatted code jammed against the left edge of the window, not the left edge of the block containing the markdown display.

As the attached screencast shows, other markdown content and the shaded background for the code block are rendered more or less where expected (there is some kind of icon displayed off the right side of the window, but I will worry about that later).

Screencast.From.2024-11-20.12-43-15.mp4

The app in the screencast is hosted at https://github.com/bgribble/mfp and the master branch is what the screencast was made from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    faqA frequent issue, remaining opened to facilitate discoverability

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions