-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address CI lint failures by adding shortcode
Shortcode is apparently necessary because raw HTML tags are not allowed - and that fixes the line length violation too. The double commenting in the shortcode of '<!-- {#' is necessary to ensure that the comment is syntax-highlighted nicely and that Tera does not try to interpret the example snippet as a macro invocation.
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- {# | ||
Embed a video into a markdown file. Example usage: | ||
{{ embed_video(type="video/mp4", src="my-video.mp4", caption="Some caption.") }} | ||
#} --> | ||
<video controls autoplay muted loop> | ||
<source | ||
type="{{ type }}" src="{{ src }}" | ||
onerror="parentNode.parentElement.innerText = 'Sorry, this video does not exist or your browser does not support the video codec. Try a different browser!'" /> | ||
</video> {% if caption %}<em>{{ caption }}</em>{% endif %} |