Skip to content

Commit 14a3686

Browse files
josevalimJosé Valim
authored andcommitted
Merge pull request #2882 from Frost/no-more-bright-yellow-in-ansi-docs
Make IO.ANSI.Docs readable on white background Signed-off-by: José Valim <[email protected]>
1 parent c04b182 commit 14a3686

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/elixir/lib/io/ansi/docs.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ defmodule IO.ANSI.Docs do
2525
[enabled: true,
2626
doc_bold: [:bright],
2727
doc_code: [:cyan, :bright],
28-
doc_headings: [:yellow, :bright],
28+
doc_headings: [:yellow],
2929
doc_inline_code: [:cyan],
3030
doc_table_heading: [:reverse],
31-
doc_title: [:reverse, :yellow, :bright],
31+
doc_title: [:reverse, :yellow],
3232
doc_underline: [:underline],
3333
width: 80]
3434
end

lib/elixir/test/elixir/io/ansi/docs_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ defmodule IO.ANSI.DocsTest do
1414

1515
test "heading is formatted" do
1616
result = format_heading("wibble")
17-
assert String.starts_with?(result, "\e[0m\n\e[7m\e[33m\e[1m")
17+
assert String.starts_with?(result, "\e[0m\n\e[7m\e[33m")
1818
assert String.ends_with?(result, "\e[0m\n\e[0m")
1919
assert String.contains?(result, " wibble ")
2020
end
2121

2222
test "first level heading is converted" do
2323
result = format("# wibble\n\ntext\n")
24-
assert result == "\e[33m\e[1mWIBBLE\e[0m\n\e[0m\ntext\n\e[0m"
24+
assert result == "\e[33mWIBBLE\e[0m\n\e[0m\ntext\n\e[0m"
2525
end
2626

2727
test "second level heading is converted" do
2828
result = format("## wibble\n\ntext\n")
29-
assert result == "\e[33m\e[1mwibble\e[0m\n\e[0m\ntext\n\e[0m"
29+
assert result == "\e[33mwibble\e[0m\n\e[0m\ntext\n\e[0m"
3030
end
3131

3232
test "third level heading is converted" do
3333
result = format("## wibble\n\ntext\n")
34-
assert result == "\e[33m\e[1mwibble\e[0m\n\e[0m\ntext\n\e[0m"
34+
assert result == "\e[33mwibble\e[0m\n\e[0m\ntext\n\e[0m"
3535
end
3636

3737
test "code block is converted" do

0 commit comments

Comments
 (0)