Skip to content

Render as plain text #34

Description

@nh13

@jenshalm, I was wondering if there was any appetite for accepting a patch for a plain-text renderer:
```class PlainText extends RendererFactory[TextWriter]`?

The use case I have for such a renderer is to be able to use markup in the description and usage messages for options in an option parser (command line parser) library. The plain-text rendered output would go to the terminal, so I am also considering optionally having ANSI terminal codes to be used for some of the elements. Since the various option help and usage messages are in Markup, we can then also render the command line usage messages in HTML for displaying on a documentation site, or in PDF for distribution elsewhere.

I was thinking of starting from the render.HTML class and the associated test class and adapt it until it produces plain-text.

What do folks think of this idea?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions