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

@lexical/markdown

Package Overview
Dependencies
Maintainers
6
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lexical/markdown - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

autoFormatUtils.d.ts

6

LexicalMarkdown.dev.js

@@ -21,3 +21,2 @@ /**

*
*
*/

@@ -55,3 +54,2 @@ function indexBy(list, callback) {

*
*
*/

@@ -205,3 +203,2 @@ function createMarkdownExport(transformers) {

*
*
*/

@@ -442,3 +439,2 @@ const CODE_BLOCK_REG_EXP = /^```(\w{1,10})?\s?$/;

*
*
*/

@@ -733,3 +729,2 @@

*
*/

@@ -947,3 +942,2 @@

*
*
*/

@@ -950,0 +944,0 @@ const ELEMENT_TRANSFORMERS = [HEADING, QUOTE, CODE, UNORDERED_LIST, ORDERED_LIST]; // Order of text format transformers matters:

16

package.json

@@ -11,14 +11,14 @@ {

"license": "MIT",
"version": "0.3.3",
"version": "0.3.4",
"main": "LexicalMarkdown.js",
"peerDependencies": {
"lexical": "0.3.3"
"lexical": "0.3.4"
},
"dependencies": {
"@lexical/utils": "0.3.3",
"@lexical/code": "0.3.3",
"@lexical/text": "0.3.3",
"@lexical/rich-text": "0.3.3",
"@lexical/list": "0.3.3",
"@lexical/link": "0.3.3"
"@lexical/utils": "0.3.4",
"@lexical/code": "0.3.4",
"@lexical/text": "0.3.4",
"@lexical/rich-text": "0.3.4",
"@lexical/list": "0.3.4",
"@lexical/link": "0.3.4"
},

@@ -25,0 +25,0 @@ "repository": {

@@ -25,6 +25,6 @@ # `@lexical/markdown`

```jsx
<LexicalComposer>
<RichTextPlugin initialEditorState={() => {
<LexicalComposer initialEditorState={() => {
$convertFromMarkdownString(markdown, TRANSFORMERS);
}} />
}}>
<RichTextPlugin />
</LexicalComposer>

@@ -34,3 +34,3 @@ ```

## Shortcuts
Can use `<LexicalMarkdownShortcutPlugin>` if using React
Can use `<MarkdownShortcutPlugin>` if using React
```jsx

@@ -41,3 +41,3 @@ import { TRANSFORMERS } from '@lexical/markdown';

<LexicalComposer>
<LexicalMarkdownShortcutPlugin transformers={TRANSFORMERS} />
<MarkdownShortcutPlugin transformers={TRANSFORMERS} />
</LexicalComposer>

@@ -44,0 +44,0 @@ ```

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