novel@0.4.1
版本发布时间: 2024-05-17 17:04:00
steven-tey/novel最新发布版本:novel@0.5.0(2024-07-26 06:16:06)
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 https://github.com/steven-tey/novel/pull/374
- feat: Added support for code blocks syntax highlighting by @ankuragrwl in https://github.com/steven-tey/novel/pull/375
- feat: Basic YT Embeds + CharCount Support by @MODSetter in https://github.com/steven-tey/novel/pull/386
- Image is deleted if an error occurs by @hernancito in https://github.com/steven-tey/novel/pull/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 https://github.com/steven-tey/novel/pull/374
- @ankuragrwl made their first contribution in https://github.com/steven-tey/novel/pull/375
- @MODSetter made their first contribution in https://github.com/steven-tey/novel/pull/386
Full Changelog: https://github.com/steven-tey/novel/compare/novel@0.3.1...novel@0.4.1