Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): add spanToPlainText function (docs updated) #180

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

theisel
Copy link
Owner

@theisel theisel commented Dec 18, 2024

Adds the spanToPlainText function to the library's API for extracting text from Portable Text spans (see https://portabletext.github.io/toolkit/functions/spanToPlainText.html).

import { spanToPlainText } from "astro-portabletext";

Deprecation: The import path astro-portabletext/utils for spanToPlainText is deprecated. This utility path will be removed in a future release.

Documentation updated.

Closes #178

- Adds export for `spanToPlainText` from @portabletext/toolkit
- Updated `utility-functions.md` documentation

Closes #178
@theisel theisel merged commit 4cac38d into main Dec 18, 2024
4 checks passed
@theisel theisel deleted the feat--spantoplaintext branch December 18, 2024 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggestion: also export spanToPlainText from @portabletext/toolkit
1 participant