Skip to content
Compare
Choose a tag to compare
@andrewdoro andrewdoro released this 08 Mar 12:22
· 96 commits to main since this release

Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.11

What's Changed

  • feat: add ai features example by @andrewdoro in #297
  • Novel now exports a couple of utilities for dealing with AI cases:
//this extension is used for highlighting text for the AI
import { AIHighlight } from "novel/extensions";

//call this function when entering in AI mode to highlight current selection
import { addAIHighlight } from "novel/extensions";

//call this function when AI mode is no longer used
import { removeAIHighlight } from "novel/extensions";

//this function returns the current selection in Markdown
import { getPrevText } from "novel/extensions";

Implementation

You can see an example implementation
https://github.com/steven-tey/novel/tree/main/apps/web/components/tailwind/generative

Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.11