remark-embed-tag Showcase

87

less than a minute read

Introduction

This is a remark plugin that renders a html embed from a simple tag syntax in markdown. This tag syntax is inspired by Hexo.

GitHub | NPM

I developed it initially for personal use but then I realized that it is fully generalizable. Thus, I published it.

Widget Showcase

Steam

Source:

{% steam 1260810 %}

Result:

Vimeo

Source:

{% vimeo 920605262 %}

Result:

YouTube

Source:

{% youtube PJgEu_Ecuf8 %}

Result:

Spotify

Source:

{% spotify 7gkS9SJbH6oMNAhcqsAYXZ}

Result:

{% spotify 7gkS9SJbH6oMNAhcqsAYXZ}

JSFiddle

Source:

{% jsfiddle zfUyN %}

Result:

Advanced Usage

Customize Iframe

Source:

{% youtube PJgEu_Ecuf8 %}(width=20%)

Result:

-- Yu Long
Published on Apr 08, 2024, PDT
Updated on Apr 08, 2024, PDT