Fix a type error caused by use of an older markdown-it type package.
Fix the type of MarkdownParser.parse
to be non-nullable. Add a strict option to MarkdownSerializer
The new strict
option to MarkdownSerializer
makes it possible to make the serializer ignore node and mark types it doesn't know.
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
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.
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.
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.
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.
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
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.
You can now pass an optional markdown-it environment object to .
Don't escape colon characters at the start of a line.
Escape parentheses in images and links.
Allow links to wrap emphasis markers when serializing Markdown.
Make sure '!' characters in front of links are escaped.
Don't escape characters in autolinks.
Fix a bug that caused the serializer to not escape start-of-line markup when inside a list.
Fix a bug where inline nodes with content would reset the marks in their parent node during Markdown parsing.
Include TypeScript type declarations.
MarkdownSerializer
now takes an escapeExtraCharacters
option that can be used to control backslash-escaping behavior. Fix types for new option
Avoid escaping underscores surrounded by word characters.
Upgrade markdown-it to version 12.
Fix a bug where URL text in links and images was overzealously escaped.
Fix a bug where MarkdownParser.parse
could return null when the parsed content doesn't fit the schema.
Make sure underscores are escaped when serializing to Markdown.
MarkdownParser.tokenizer
is now public, for easier creation of parsers that base on other parsers.
Serializing to Markdown now properly escapes '>' characters at the start of the line.
The Markdown parser will now correctly set the tight
attribute on list nodes.
Markdown parse specs can now be specified as noCloseToken
, which will cause the parser to treat them as a single token, rather than a pair of _open
/_close
tokens.
Don't allow hard_break nodes in headings.
Fix issue that broke parsing ordered lists with a starting number other than 1.
Don't use short-hand angle bracket syntax when outputting self-linking URLs that are relative.
Rename ES module files to use a .js extension, since Webpack gets confused by .mjs
The file referred to in the package's module
field now is compiled down to ES5.
Add a module
field to package json file.
Code blocks in the schema no longer allow marks inside them.
Code blocks are now parsed with preserveWhiteSpace: full
, preventing removal of newline characters.
Fix a bug that could occur when parsing multiple adjacent pieces of text with the same style.
Inline code containing backticks is now serialized wrapped in the appropriate amount of backticks.
The serializer now serializes links whose target is the same as their text content using < > syntax.
Mark opening and close string callbacks now get passed the mark's context (parent fragment and index).
Hard breaks at the end of an emphasized or strong mark are no longer serialized to invalid Markdown text.
Fixes a bug where inline mark delimiters were serialized incorrectly (the closing and opening marks were swapped, which was only noticeable when they are different).
Fixes an issue where the Markdown serializer would escape special characters in inline code.
Upgrade the markdown-it dependency to version 8.
Fix bug that caused superfluous backslashes to be inserted at the start of some lines when serializing to Markdown.
You can now override the handling of softbreak tokens in a custom handler.
Fix crash when serializing marks with line breaks inside of them.
Fix dependency version range for prosemirror-model.
Code blocks are always wrapped in triple backticks when serializing, to avoid parsing corner cases around indented code blocks.
Link marks are now non-inclusive (typing after them produces non-linked text).
First stable release.