xxxxxxxxxx
1
1
using HypertextLiteral
xxxxxxxxxx
21
1
begin
2
struct Blurred
3
content
4
end
5
function Base.show(io::IO, m::MIME"text/html", b::Blurred)
6
content = ("""
7
<span class="blurred">
8
$(b.content)
9
</span>
10
<style>
11
.blurred {
12
filter: blur(4px);
13
}
14
.blurred:hover {
15
filter: none;
16
}
17
</style>
18
""")
19
show(io, m, content)
20
end
21
end
xxxxxxxxxx
1
1
Blurred("pizza")
This answer is
xxxxxxxxxx
3
1
md"""
2
# This answer is $(Blurred("42"))
3
"""
xxxxxxxxxx
1
1
plot(exp) |> Blurred
xxxxxxxxxx
1
1
using Plots