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

New Feature: Generate JSON from HTML #1273

Merged
merged 5 commits into from
May 7, 2021

Conversation

hanspagel
Copy link
Contributor

@hanspagel hanspagel commented May 5, 2021

This PR adds two new utility functions to generate JSON from a given HTML string.

  • generateJSON(html, extensions) in @tiptap/core (requires a browser, lightweight)
  • generateJSON(html, extensions) in @tiptap/html (works everywhere)

Should we add a new @tiptap/json package? Or should we keep it in the @tiptap/html package?

For more context, see #1042

@hanspagel hanspagel requested a review from philippkuehn May 5, 2021 21:14
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.

2 participants