Skip to content

Wrap IOBuffers in IOContext to allow :color for colored output ? #276

@t-bltg

Description

@t-bltg

My use case is generating UnicodePlots plots in Plots documentation. We use DemoCards.jl which in turn uses Literate.jl to generate the examples.

Issue: we miss the colors in the generated Documenter html files, hence producing colorless text plots.

I've identified the issue to come from the Literate side.

A trivial working patch is proposed in #275.

So for me to go further :

In Documenter.jl, there is the ansicolor keyword which allows colored output in @example blocks (as for https://juliaplots.org/UnicodePlots.jl/stable/), so I'm looking for a way to reproduce the same feature using DemoCards.jl and Literate.jl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions