Make Markdown-specific commands return false inside fenced code.
Fix an infinite loop caused by insertNewlineContinueMarkup
.
Fix an issue where insertNewlineContinueMarkup
didn't work with the cursor directly after an HTML tag.
The new htmlTagLanguage
option allows client code to configure which language is used to parse HTML tags in the document.
Disable folding for list nodes (since it will shadow the folding on the first list item).
Starting at the third list item, insertNewlineContinueMarkup
will now keep the tightness of the list, and only require two presses to clear an empty list item.
Support code folding for GFM tables.
Fix a bug in insertNewlineContinueMarkup
that caused it to put the cursor in the wrong place when the editor's line break was more than one character long.
Make insertNewlineContinueMarkup
and deleteMarkupBackward
use tabs for indentation when appropriate.
The markdown package now installs a completion source that completes HTML tags when in Markdown context.
Fix the declaration of comentTokens
language data for Markdown.
Fix a bug in deleteMarkupBackward
that would cause it to delete pieces of continued paragraphs below list item markers.
Add support for folding entire sections from the header.
Make sure task lists are indented correctly even when deeply nested.
Fix an issue where nested task lists were indented too deeply.
Add a name
value to the Markdown language object.
Improve insertNewlineContinueMarkup
's behavior in a fenced code block.
Ignore text after whitespace in code block metadata, when determining which language the block is.
Update dependencies to 6.0.0
The codeLanguages
option to markdown
may now be a function from an info string to a language.
insertNewlineContinueMarkup
can now continue task lists. Move highlighting information into @lezer/markdown
Fix an issue where deleteMarkupBackward
could get confused when there was only whitespace between the cursor and the start of the line.
Make insertNewlineContinueMarkup
exit blockquotes after two blank lines.
Fix a bug where list items after a removed item were incorrectly renumbered.
insertNewlineContinueMarkup
will no longer exit lists when there is content after the cursor.
Fix an issue in deleteMarkupBackward
where it only deleted a single space when after a number marker.
Fix a bug where the monospace highlighting tag wasn't correctly applied to code block content.
Fix incorrect versions for @lezer dependencies.
Update dependencies to 0.19.0
Fix a case where deleteMarkupBackward
would return true without actually having an effect.
insertNewlineContinueMarkup
will not continue moving list markers down when they are after an empty line anymore.
Fix a bug where insertNewlineContinueMarkup
could duplicate bits of content when in dededented continued list items.
Add monospace
style tag to all children of inline code nodes.
Update dependencies to 0.18.
Include heading depth in style tags.
Fix a bug where insertNewlineContinueMarkup
would sometimes duplicate bits of content.
The package now exports both a commonmarkLanguage
, with just plain CommonMark, and a markdownLanguage
, with GFM and some other extensions enabled.
It is now possible to pass lezer-markdown extensions to the markdown
function to configure the parser.
The package now also exports a CommonJS module.
First numbered release.