New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

astro-markdoc-renderer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-markdoc-renderer

Markdoc renderer for Astro

  • 0.0.1-alpha.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
363
decreased by-8.1%
Maintainers
1
Weekly downloads
 
Created
Source

Astro Markdoc Renderer

Markdoc renderer for Astro.

Install

yarn add astro-markdoc-renderer

Usage

---
import { MarkdocRenderer } from "astro-markdoc-renderer";
import type { Content } from "astro-markdoc-renderer";
import HeadingOne from "./HeadingOne.astro";
import YouTubeEmbed from "./YouTubeEmbed.astro";

type Props = {
  content: Content;
};

const { content } = Astro.props;

const components = {
  // custom tag
  YouTubeEmbed: {
    Component: YouTubeEmbed,
    props: {},
  },
  // <h1> tag
  h1: {
    Component: HeadingOne,
    props: {},
  },
};
---

<MarkdocRenderer content={content} components={components} />

License

MIT © Dinesh Pandiyan

Keywords

FAQs

Package last updated on 03 Jan 2023

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