Skip to content

Commit 86639e1

Browse files
authored
Add a warning that HTML should not be used #38909 (#39072)
* Add a warning that HTML should not be used #38909
1 parent 5c6e21e commit 86639e1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

base/docs/utils.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ You can also use a stream for large amounts of data:
1818
HTML() do io
1919
println(io, "<div>foo</div>")
2020
end
21+
22+
!!! warning
23+
`HTML` is currently exported to maintain
24+
backwards-compatibility, but is considered
25+
to be deprecated and should not be used.
2126
"""
2227
mutable struct HTML{T}
2328
content::T
@@ -63,6 +68,11 @@ You can also use a stream for large amounts of data:
6368
Text() do io
6469
println(io, "foo")
6570
end
71+
72+
!!! warning
73+
`Text` is currently exported to maintain
74+
backwards-compatibility, but is considered
75+
to be deprecated and should not be used.
6676
"""
6777
mutable struct Text{T}
6878
content::T

0 commit comments

Comments
 (0)