Display("text.html", "<script></script>") error

I used to use display("text.html", "<script></script>") to include javascript plot or a raw HTML in Weave doc. But today I encountered the following error:

ERROR: MethodError: no method matching show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::MIME{Symbol("text/html")}, ::String)
Closest candidates are:
  show(::IO, !Matched::MIME{Symbol("text/plain")}, ::Any) at multimedia.jl:47
  show(::IO, ::MIME{Symbol("text/html")}, !Matched::Method) at methodshow.jl:340
  show(::IO, ::MIME{Symbol("text/html")}, !Matched::Base.MethodList) at methodshow.jl:393

Same as when I enter it in REPL.

Julia Version: 1.5.0-beta1.0

It doesn’t seem that the usage of display API has changed. How can I solve this problem?