@gemsorg/uikit
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@gemsorg/uikit", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"author": "gems.org", | ||
"gitHead": "c08ff290cc740432de158fee85fc660cfb526d0f" | ||
"gitHead": "fedf8ca89f07ba891fc944dcde2dd488df633b14" | ||
} |
import React, { Component, createRef } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import marked from 'marked'; | ||
@@ -16,2 +17,6 @@ import highlight from './highlight'; | ||
this.state = { | ||
md: marked(props.doc, { ...marked.defaults }), | ||
}; | ||
this.containerRef = createRef(); | ||
@@ -29,3 +34,3 @@ } | ||
render() { | ||
const { doc } = this.props; | ||
const { md } = this.state; | ||
return ( | ||
@@ -35,3 +40,3 @@ <div | ||
className="gem-gh-markdown" | ||
dangerouslySetInnerHTML={{ __html: doc }} // eslint-disable-line react/no-danger | ||
dangerouslySetInnerHTML={{ __html: md }} // eslint-disable-line react/no-danger | ||
/> | ||
@@ -38,0 +43,0 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
35216
294
0