-
Notifications
You must be signed in to change notification settings - Fork 498
Open
JuliaDocs/ANSIColoredPrinters.jl
#19Labels
Format: HTMLRelated to the default HTML outputRelated to the default HTML outputType: BugType: Upstream
Description
As I've been doing a round of improvements to the StyledStrings docs, it occurred to me that it would be good to show some styled content. One of the examples I showed was with background colour. Documenter could obtain HTML representations of AnnotatedStrings with the show(::IO, ::MIME"text/html", ::AnnotatedString)
method provided by StyledStrings (and I will make another issue on this), but for now I've tried using @repl; ansicolor=true
blocks.
When used with styled"{magenta:some {inverse:inverse} text}"
, Documenter using an IO
with :color
would see \e[35msome \e[7minverse\e[27m text\e[39m
and produces:
However, this is not correct. In the terminal one sees this:
and StyledStrings produces the following HTML:
<span style="color: #803d9b;">some </span><span style="background-color: #803d9b;">inverse</span><span style="color: #803d9b;"> text</span>
Metadata
Metadata
Assignees
Labels
Format: HTMLRelated to the default HTML outputRelated to the default HTML outputType: BugType: Upstream