tag:support.markedapp.com,2011-09-11:/discussions/problems/149952-videos-are-not-exported-with-video-tagMarked: Discussion 2019-02-07T21:30:41Ztag:support.markedapp.com,2011-09-11:Comment/466214422018-12-05T11:46:56Z2018-12-05T11:52:03ZVideos are not exported with <video> tag<div><p>The following Markdown</p>
<pre>
<code>![Slicing with no tilt](slicing-tilt-0.mp4)</code>
</pre>
<p>get exported as</p>
<pre>
<code><figure>
<img src="slicing-tilt-0.mp4" alt="Slicing with no tilt">
<figcaption>Slicing with no tilt</figcaption>
</figure></code>
</pre>
<p>whereas I would liked it to be exported with the HTML5 tag <code><video></code></p>
<pre>
<code><figure>
<video autoplay muted>
<source src="slicing-tilt-0.mp4" type="video/mp4">
</video>
<figcaption>Slicing with no tilt</figcaption>
</figure></code>
</pre>
<p>Now, I realise that <code>autoplay muted</code> might not be what somebody else wants. Let the user choose in preferences?</p></div>luc_j_bourhistag:support.markedapp.com,2011-09-11:Comment/466214422018-12-05T18:59:04Z2018-12-05T18:59:04ZVideos are not exported with <video> tag<div><p>Video tags aren't part of Markdown. The syntax you're using will always<br>
result in an img tag. The only way to get what you're looking for is to<br>
manually add the HTML (which would need to include the figure markup as<br>
that won't be automatically generated), or to use a custom processor<br>
that does a search and replace for image tags with video source urls.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/466214422019-02-07T00:31:32Z2019-02-07T00:31:34ZVideos are not exported with <video> tag<div><p>I tried to use the <video>tags but the videos won't play in the Marked2 window. Is that expected behavior?</video></p></div>nachikettag:support.markedapp.com,2011-09-11:Comment/466214422019-02-07T15:22:59Z2019-02-07T15:22:59ZVideos are not exported with <video> tag<div><p>No, they should play fine, assuming you're not running into a sandbox<br>
issue. Please let me know which version of Marked you're running (Mac<br>
App Store, Paddle, Setapp) and show me exactly what markup (the video<br>
tag(s)) you're using.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/466214422019-02-07T20:38:03Z2019-02-07T20:38:04ZVideos are not exported with <video> tag<div><p>Hi — sorry I just debugged this again and it seems to be playing now. However the window size is much larger than text width. If I rescale the Marked window, images scale perfectly fine but the video window remains stubbornly massive.</p>
<p>I’m running Marked 2 installed via App Store on MacOS Mojave.</p>
<p>Somewhat related — is there a Gitlab Flavored Markdown processor we can use instead of the Github Flavored Markdown processor (Discount)? Is it just a matter of configuring CSS files or is do I need to configure something else?</p>
<p>Details of Gitlab’s markdown —> <a href="https://docs.gitlab.com/ee/user/markdown.html#videos">https://docs.gitlab.com/ee/user/markdown.html#videos</a></p>
<p>They allow video embeds using the image embedding syntax and relying on the right extension to detect type.<br>
<img src="video.mov" alt=""></p>
<p>Nachiket</p></div>nachikettag:support.markedapp.com,2011-09-11:Comment/466214422019-02-07T20:54:16Z2019-02-07T20:54:16ZVideos are not exported with <video> tag<div><p>The size of the video player would depend entirely on the size of the video. You can constrain it using width and height tags in the tag, or add a line to the Extra CSS box in Style preferences like:</p>
<p> video { max-width: 100%; }</p>
<p>Or 50% or whatever works best in your layout.</p>
<p>As far as custom processors, if there's a command line tool provided for a syntax, you can use it under advanced preferences. If not, it would have to be replicated using some relatively advanced scripting.</p>
<ul>
<li>Brett</li>
</ul></div>Bretttag:support.markedapp.com,2011-09-11:Comment/466214422019-02-07T21:30:41Z2019-02-07T21:30:41ZVideos are not exported with <video> tag<div><p>No content.</p></div>nachiket