Skip to content

New Feature: Generate JSON from HTML - #1273

Merged
philippkuehn merged 5 commits into
mainfrom
feature/generate-json-from-html
May 7, 2021
Merged

New Feature: Generate JSON from HTML#1273
philippkuehn merged 5 commits into
mainfrom
feature/generate-json-from-html

Conversation

@hanspagel

@hanspagel hanspagel commented May 5, 2021

Copy link
Copy Markdown
Contributor

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