Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@astro-community/astro-embed-integration

Package Overview
Dependencies
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astro-community/astro-embed-integration

Astro integration to automatically convert URLs in Markdown files to embeds

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.3K
decreased by-9.47%
Maintainers
6
Weekly downloads
 
Created
Source

@astro-community/astro-embed-integration

This is an experimental Astro integration that allows you to auto-convert URLs in Markdown file to a corresponding embed component.

Install

npm i @astro-community/astro-embed-integration

Usage

To enable the integration, add it to the integrations array in your astro.config.mjs file.

import { defineConfig } from 'astro/config';
import embeds from '@astro-community/astro-embed-integration';

export default defineConfig({
  integrations: [embeds()],
});

⚠️ Astro integrations are still experimental currently so you will need to add the --experimental-integrations flag to your astro dev/build commands to enable this unofficial integration.

With the integration enabled any isolated URL in a Markdown file that matches one of the astro-embed component types will be converted to the appropriate component.

For example, Markdown like this

I saw this cool Tweet the other day:

https://twitter.com/astrodotbuild/status/1511750228428435457

Will render a static Tweet component in place of the URL.

FAQs

Package last updated on 12 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc