Socket
Socket
Sign inDemoInstall

remark-mdx

Package Overview
Dependencies
Maintainers
2
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-mdx - npm Package Compare versions

Comparing version 1.0.23 to 1.0.25

5

block.js

@@ -27,5 +27,6 @@ // Source copied and then modified from

const otherElementOpenExpression = new RegExp(openCloseTag.source + '\\s*$')
const fragmentOpenExpression = /^<>/
function blockHtml(eat, value, silent) {
const blocks = '[a-z\\.]+(\\.){0,1}[a-z\\.]'
const blocks = '[a-z\\.]*(\\.){0,1}[a-z][a-z0-9\\.]*'
const elementOpenExpression = new RegExp(

@@ -35,2 +36,3 @@ '^</?(' + blocks + ')(?=(\\s|/?>|$))',

)
const length = value.length

@@ -53,2 +55,3 @@ let index = 0

[elementOpenExpression, elementCloseExpression, true],
[fragmentOpenExpression, elementCloseExpression, true],
[otherElementOpenExpression, elementCloseExpression, false]

@@ -55,0 +58,0 @@ ]

4

package.json
{
"name": "remark-mdx",
"version": "1.0.23",
"version": "1.0.25",
"description": "Support import, export, and JSX in markdown",

@@ -50,3 +50,3 @@ "license": "MIT",

},
"gitHead": "e49ab7d87373a489c6e020fd15a490a7d2d44782"
"gitHead": "534012cfe08f85342b4709936496c85be1d56e85"
}
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