← Volver a notas

2022-11-01 · draft

Extended markdown style guide

In addition to supporting all basic Markdoc syntax, this template also supports extended markdown syntax to render custom components.

    This blog’s markdown is powered by Markdoc. In addition to supporting all basic markdown syntax, this blog also supports extended syntax to render custom components that are not conventionally available via basic markdown. This post is an example to showcase all available extended markdown syntax.

    YouTube Video

    You can embed YouTube videos in your blog posts.

    {% youtube url=“https://www.youtube-nocookie.com/embed/StTqXEQ2l-Y” label=“Everything is awesome - Lego movie song” /%}

    Tweet

    You can embed tweets in your blog posts.

    {% tweet url=“https://twitter.com/flexdinesh/status/1605685194312122370” /%}

    CodePen

    You can embed codepens in your blog posts.

    {% codepen url=“https://codepen.io/ruphaa/pen/eYJqjgq” title=“Ecosystem - Pen in CSS by Ruphaa” /%}

    GitHub Gist

    You can embed GitHub gists in your blog posts.

    {% githubgist id=“d96064c9c4ef2e8ef71c90a10ffcf3b2” /%}

    Lesser Known HTML Elements

    abbr

    {% abbr title=“Graphics Interchange Format” %}GIF{% /abbr %} is a bitmap image format.

    sub

    H{% sub %}2{% /sub %}O

    sup

    X{% sup %}n{% /sup %} + Y{% sup %}n{% /sup %} = Z{% sup %}n{% /sup %}

    kbd

    Press {% kbd %}{% kbd %}CTRL{% /kbd %}+{% kbd %}ALT{% /kbd %}+{% kbd %}Delete{% /kbd %}{% /kbd %} to end the session.

    mark

    Most {% mark %}salamanders{% /mark %} are nocturnal, and hunt for insects, worms, and other small creatures.