Skip to main content

Pelican plugin: embed oEmbed URLs (YouTube, Vimeo, Twitter, etc.) in Markdown content

Project description

pelican-oembed

A Pelican plugin that embeds oEmbed URLs (YouTube, Vimeo, Twitter/X, Spotify, etc.) directly in your Markdown content.

Bare URLs on their own line are replaced with embedded HTML using the Micawber oEmbed library, before Pelican post-processing runs.

Installation

pip install pelican-oembed

Then add to your Pelican pelicanconf.py:

PLUGINS = ["pelican.plugins.oembed"]

Usage

Place a bare URL on its own line in your Markdown content:

Check out this video:

https://www.youtube.com/watch?v=dQw4w9WgXcQ

More text here.

The URL will be replaced with the oEmbed HTML (an <iframe> for YouTube, etc.).

Supported Providers

  • YouTube (youtube.com, youtu.be)
  • Vimeo (vimeo.com)
  • Twitter/X (twitter.com, x.com)
  • Instagram (instagram.com)
  • SoundCloud (soundcloud.com)
  • Spotify (open.spotify.com)
  • TikTok (tiktok.com)

Contributing

See CONTRIBUTING.md.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pelican_oembed-1.0.4.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pelican_oembed-1.0.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pelican_oembed-1.0.4.tar.gz.

File metadata

  • Download URL: pelican_oembed-1.0.4.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pelican_oembed-1.0.4.tar.gz
Algorithm Hash digest
SHA256 cfdc83b2d15da68cc7996879747b1008274597500483247d1c24f0b5a453a521
MD5 0c7799f84193063500b0991dabe3ba87
BLAKE2b-256 1ed71243afead902d380e5e6b8f25ac850d57f92372c6f1668407e081ad749fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pelican_oembed-1.0.4.tar.gz:

Publisher: publish.yml on tclancy/pelican-oembed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pelican_oembed-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pelican_oembed-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pelican_oembed-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b23ca0b328e80cbc54e7a7418b96a158d1757608611bd53e6463a25c174fc5a3
MD5 fa0d636b7486f40a868a215e9d1a34fe
BLAKE2b-256 15942336ed6cdc503604801e8bbf0fbad8e44dff8a0f07e8431db5f28d80abe6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pelican_oembed-1.0.4-py3-none-any.whl:

Publisher: publish.yml on tclancy/pelican-oembed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page