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

Allow exporting HTML #261

Open
zrosenbauer opened this issue Dec 13, 2024 · 0 comments
Open

Allow exporting HTML #261

zrosenbauer opened this issue Dec 13, 2024 · 0 comments
Labels
type: enhancement New feature or technical improvement.

Comments

@zrosenbauer
Copy link
Member

Describe the problem you'd like to have solved

I need to be able to output HTML string.

Describe the ideal solution

A package for converting TempoJSON to TipTapJSON by adding options to the toJSON method.

const doc = new TempoDoc();

const output = doc
  .h1('Example')
  .paragraphy('Hello world!')
  .toString({ format: 'html' });

Alternatives and current work-arounds

Currently translate markdown to html using unifiedjs or other library.

Additional context

TipTap has an API but we need an OSS alternative.

@zrosenbauer zrosenbauer converted this from a draft issue Dec 13, 2024
@zrosenbauer zrosenbauer moved this from Idea to Todo in Roadmap: tempo Dec 13, 2024
@zrosenbauer zrosenbauer added the type: enhancement New feature or technical improvement. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or technical improvement.
Projects
Status: Todo
Development

No branches or pull requests

1 participant