Note: In /assets/css/syntax.css you can change the first declaration to choose if you want a scrollbar or text wrap.
MathJAX and LaTeX
YAMT supports LaTeX and MathJAX to write beautiful math. There are three ways to write math in YAMT. In this example I’ll use Bernoulli’s principle.
In fluid dynamics, Bernoulli’s principle states that an increase in the speed of a fluid occurs simultaneously with a decrease in static pressure or a decrease in the fluid’s potential energy. Wikipedia
YAMT supports optimized gifs in WebM and MP4 formats. I suggest to use a website like Convertio to converts your .gifs to WebM and MP4. WebM is the suggested format but it’s not supported by every browser (looking at you, Safari), so MP4 is used as fallback. Put both files in the gif folder and insert gifs in your post using
{_% include gif.html file = "mygif" %}
Delete the underscore to make it work.
If you want to use a gif as featured image, delete the “image” tag in the front matter and use instead the “gif” tag. As a parameter, use the filename without extensions.