From 8739d829b405b818684888eff693fbafd3a14555 Mon Sep 17 00:00:00 2001 From: j4nk Date: Wed, 4 Jan 2023 08:55:28 -0500 Subject: [PATCH] Made videos display controls by default --- md4tj_parse.el | 2 +- test_css.css | 7 ++++++- test_file.html | 4 +++- test_file.md4tj | 1 + 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/md4tj_parse.el b/md4tj_parse.el index 8f28f8f..359a06e 100644 --- a/md4tj_parse.el +++ b/md4tj_parse.el @@ -46,7 +46,7 @@ ;; Then videos (replace-regexp-in-string "!!\\[\\([^\\[]*\\)](\\([^\\[]*\\))" - (concat (md4tj-begin-tag "video" (list '("src" "\\2") '("type" "video/webm"))) "\\1" (md4tj-end-tag "video")) + (concat (md4tj-begin-tag "video" (list '("src" "\\2") '("type" "video/webm") '("controls" "true"))) "\\1" (md4tj-end-tag "video")) ;; Then emphasis (replace-regexp-in-string "\\*\\(.*\\)\\*" diff --git a/test_css.css b/test_css.css index adba509..f783083 100644 --- a/test_css.css +++ b/test_css.css @@ -1 +1,6 @@ - body {background-color: #00ff00;} +body {background-color: #00ff00;} + +video { + width: 100%; + height: auto; +}; diff --git a/test_file.html b/test_file.html index ab5568c..32e1444 100644 --- a/test_file.html +++ b/test_file.html @@ -2,6 +2,7 @@ + Test webpage @@ -10,6 +11,7 @@ +

Hello world!

Hello world!

Hello world!

@@ -20,7 +22,7 @@

Example website

Example image

-

+