andrewdoro
released this
17 May 09:04
·
49 commits
to main
since this release
Breaking Changes
- getPrevText is now exported from novel/utils
- import { getPrevText } from "novel/extensions";
+ import { getPrevText } from "novel/utils";
- drag handle has to be explicitly added to the extension array
+ import { GlobalDragHandle } from "novel/extensions";
const extensions = [..., GlobalDragHandle]
What's Changed
- migrated eslint/prettier to biome
- #370-fix-cannot-remove-a-selected-link-in-the-bubble-menu by @code-sharad in #374
- feat: Added support for code blocks syntax highlighting by @ankuragrwl in #375
- feat: Basic YT Embeds + CharCount Support by @MODSetter in #386
- Image is deleted if an error occurs by @hernancito in #390
- novel/utils exports a series of utils functions
//returns document content until a give position in doc
import { getPrevText} from "novel/utils";
const pos = editor.state.selection.from;
const text = getPrevText(editor, pos);
//returns document content as markdown string
import { getAllContent} from "novel/utils";
New Contributors
- @code-sharad made their first contribution in #374
- @ankuragrwl made their first contribution in #375
- @MODSetter made their first contribution in #386
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.4.1