Skip to content

Commit

Permalink
Render videos in video elements
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Feb 16, 2024
1 parent 5fb34a1 commit f2aed14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function render(io::IO, mime::MIME"text/plain", node::Documenter.MarkdownAST.Nod
base64decode(d[MIME"image/gif"()]))
println(io,
"""
![]($(filename).mp4)
<video src="$filename.mp4" controls="controls" autoplay="autoplay"></video>)
""")
elseif haskey(d, MIME"text/plain"())
text = d[MIME"text/plain"()]
Expand Down

0 comments on commit f2aed14

Please sign in to comment.