ShortCodes.jl

Short codes to embed content in Pluto notebooks
Author hellemo
Popularity
13 Stars
Updated Last
1 Year Ago
Started In
October 2020

ShortCodes

Simply embed content in a Pluto notebook using short codes, inspired by the Hugo shortcodes.

The basic usage is shown below, check out the example to get an impression of the resulting page.

Usage

using ShortCodes

# Embed tweet by id
Twitter(1314967811626872842)

# Embed youtube video by id and seek to start 
# time and pause to show custom still image
YouTube("IAF8DjrQSSk", 2, 30) # 2 min 30 sec

# Embed Flickr image by id (or by url)
Flickr(29110717138)

# Show DOI info from opencitations.net
DOI("10.1137/141000671")

Note

  • YouTube shows an overlay when the video is paused, promoting "more videos", and the API does not allow hiding it. A workaround is to block the overlay using uBlock.
  • Some browsers may block content from social media, e.g. Firefox may block Twitter embeds, check the settings of your browser if it doesn't load.

Used By Packages

No packages found.