Skip to content

Workbench: Structured text in plugin "about" text #2512

@phawthorne

Description

@phawthorne

Background/Motivation

I'm developing plugins and want to be able to provide structured text in the "about" boxes (i.e. the info tooltips in the workbench interface).

Description

It would be really helpful to be able to have structured text in the about boxes. Some things I want to be able to do:

  • Include paragraph breaks to separate a quick introductory sentence from a more detailed description
  • Apply formatting to keywords (e.g. bold or italics)
  • Create formatted lists. In my current use case in the ROOT plugin specifically, there is a dropdown with some choices about the algorithm and I want the helper text to have a list with one entry per choice.

In the old version of ROOT that was built with the Qt interface engine, I could use html to provide formatting e.g. break tags for line breaks or ul/li tags for lists. That could work, but if possible, I'd prefer switching to markdown.

Benefits

This addition would give plugin authors the ability to provide more helpful "about" text than they are currently able to do, which would provide users better inline documentation and make use of the tools more streamlined. Markdown would be easy for developers to use.

Mitigation of side effects

I don't think there would be any side effects with Markdown. Using html might require some sanitization.

Alternatives

The only alternative now is to do the best we can in the about text and refer users to external documentation.

Additional context

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    pluginsIssues related to the InVEST plugin feature.workbenchFor issues relating to the workbench front-end of invest

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions