Skip to content

Commit

Permalink
themes: support video rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun committed Sep 10, 2021
1 parent 92c18fe commit 2bf8770
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/posts/ultimate-channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ See [fyne-io/io#2406](https://github.com/fyne-io/fyne/pull/2406) for more detail

| Before the fix | After the fix |
|:--------------:|:-------------:|
|<video width="320" controls><source src="https://user-images.githubusercontent.com/5498964/131047269-f1b89f9c-428a-4c3b-9e72-8855e0523ecd.mp4" type="video/mp4">Your browser does not support the video tag.</video>|<video width="320" controls><source src="https://user-images.githubusercontent.com/5498964/131047282-b48e7ab5-0dd7-445a-8cdf-9b00c7a525b4.mp4" type="video/mp4">Your browser does not support the video tag.</video>|
|{{< rawhtml >}} <video width="320" autoplay controls><source src="https://user-images.githubusercontent.com/5498964/131047269-f1b89f9c-428a-4c3b-9e72-8855e0523ecd.mp4" type="video/mp4">Your browser does not support the video tag.</video>{{< /rawhtml >}}|{{< rawhtml >}} <video width="320" autoplay controls><source src="https://user-images.githubusercontent.com/5498964/131047282-b48e7ab5-0dd7-445a-8cdf-9b00c7a525b4.mp4" type="video/mp4">Your browser does not support the video tag.</video>{{< /rawhtml >}}|

Before the fix, the tiny blocks are only partially rendered; whereas all blocks can be rendered after the fix.

Expand Down
2 changes: 2 additions & 0 deletions themes/research/layouts/shortcodes/rawhtml.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}

0 comments on commit 2bf8770

Please sign in to comment.