Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: ProseMirror/prosemirror-markdown

Tags

1.13.3

Toggle 1.13.3's commit message
Version 1.13.3

### Bug fixes

Properly move trailing whitespace out of marks when they end in a hard break node.

1.13.2

Toggle 1.13.2's commit message
Version 1.13.2

### Bug fixes

Add a `code` flag to the code mark.

1.13.1

Toggle 1.13.1's commit message
Version 1.13.1

### Bug fixes

Fix a type error caused by use of an older markdown-it type package.

1.13.0

Toggle 1.13.0's commit message
Version 1.13.0

### Bug fixes

Fix the type of `MarkdownParser.parse` to be non-nullable. Add a strict option to MarkdownSerializer

### New features

The new `strict` option to `MarkdownSerializer` makes it possible to make the serializer ignore node and mark types it doesn't know.

1.12.0

Toggle 1.12.0's commit message
Version 1.12.0

### Bug fixes

Block-level markup inside a heading is no longer escaped by the serializer.

Do not backslash-escape a `+` at the start of line when it isn't followed by a space. Upgrade to markdown-it 14

### New features

`MarkdownSerializerState.renderInline` now takes a parameter that controls whether block-level markup should be escaped.

Upgrade to markdown-it version 14, which provides ES modules.

1.11.2

Toggle 1.11.2's commit message
Version 1.11.2

### Bug fixes

Fix some unnecessary escapes for period characters in Markdown serialization.

Only escape `#` signs if they would otherwise create a heading. Add a test for headings in list items

Fix a bug in `MarkdownSerializer` that broken expelling of whitespace from marks when the mark spanned multiple nodes.

1.11.1

Toggle 1.11.1's commit message
Version 1.11.1

### Bug fixes

Allow any blocks as first child of list items to align with what Markdown itself does.

Add parse rules that clear `strong` and `em` marks when inline CSS resets it.

1.11.0

Toggle 1.11.0's commit message
Version 1.11.0

### Bug fixes

Make sure blank lines at the end of code blocks are properly serialized.

Convert soft breaks (single newlines) in Markdown to spaces, rather than newlines in the ProseMirror document, because newlines tend to behave awkwardly in the editor.

Fix a bug that cause the object passed as configuration to `MarkdownSerializer` to be mutated. Add release note

Include CommonJS type declarations in the package to please new TypeScript resolution settings.

### New features

A new option to `MarkdownSerializer` allows client code to configure which node type should be treated as hard breaks during mark serialization. Remove the extra left bracket

1.10.1

Toggle 1.10.1's commit message
Version 1.10.1

### Bug fixes

Don't treat the empty string the same as `null` in `wrapBlock`'s `firstDelim` argument. Check content of code blocks for any sequence of backticks

Use longer sequences of backticks when serializing a code block that contains three or more backticks in a row.

1.10.0

Toggle 1.10.0's commit message
Version 1.10.0

### New features

You can now pass an optional markdown-it environment object to .