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

react-markdown

Package Overview
Dependencies
Maintainers
2
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-markdown - npm Package Compare versions

Comparing version 8.0.5 to 8.0.6

26

lib/ast-to-react.d.ts

@@ -16,3 +16,3 @@ /**

*/
export type ComponentPropsWithoutRef<T> =
export type ComponentPropsWithoutRef<T extends React.ElementType<any>> =
import('react').ComponentPropsWithoutRef<T>

@@ -125,20 +125,12 @@ export type ReactNode = import('react').ReactNode

export type Options = {
sourcePos?: boolean | undefined
rawSourcePos?: boolean | undefined
skipHtml?: boolean | undefined
includeElementIndex?: boolean | undefined
transformLinkUri?: false | TransformLink | null | undefined
transformImageUri?: TransformImage | undefined
linkTarget?: React.HTMLAttributeAnchorTarget | TransformLinkTarget | undefined
components?:
| Partial<
Omit<
import('./complex-types.js').NormalComponents,
keyof SpecialComponents
> &
SpecialComponents
>
| undefined
sourcePos?: boolean
rawSourcePos?: boolean
skipHtml?: boolean
includeElementIndex?: boolean
transformLinkUri?: null | false | TransformLink
transformImageUri?: TransformImage
linkTarget?: TransformLinkTargetType | TransformLinkTarget
components?: Components
}
import React from 'react'
import style from 'style-to-object'

@@ -7,3 +7,3 @@ /**

/**
* @template T
* @template {import('react').ElementType} T
* @typedef {import('react').ComponentPropsWithoutRef<T>} ComponentPropsWithoutRef<T>

@@ -10,0 +10,0 @@ */

@@ -44,8 +44,8 @@ /**

export type PluginOptions = {
remarkPlugins?: import('unified').PluggableList | undefined
rehypePlugins?: import('unified').PluggableList | undefined
remarkPlugins?: import('unified').PluggableList
rehypePlugins?: import('unified').PluggableList
remarkRehypeOptions?: import('remark-rehype').Options | undefined
}
export type LayoutOptions = {
className?: string | undefined
className?: string
}

@@ -59,4 +59,4 @@ export type ReactMarkdownOptions = CoreOptions &

id: string
to?: string | undefined
to?: string
}
import PropTypes from 'prop-types'

@@ -16,6 +16,6 @@ export default function rehypeFilter(

export type Options = {
allowedElements?: string[] | undefined
disallowedElements?: string[] | undefined
allowElement?: AllowElement | undefined
unwrapDisallowed?: boolean | undefined
allowedElements?: Array<string>
disallowedElements?: Array<string>
allowElement?: AllowElement
unwrapDisallowed?: boolean
}
{
"name": "react-markdown",
"version": "8.0.5",
"version": "8.0.6",
"description": "React component to render markdown",

@@ -122,5 +122,4 @@ "license": "MIT",

"remark-toc": "^8.0.0",
"rimraf": "^3.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"typescript": "^5.0.0",
"xo": "^0.53.0"

@@ -127,0 +126,0 @@ },

Sorry, the diff of this file is too big to display

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