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

Get clipboard data in HTML format #2406

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

alwx
Copy link
Contributor

@alwx alwx commented Oct 4, 2022

Makes it possible to paste complex data such as lists and formatted HTML text to Athens.
The original goal of it was to make it possible to insert nested lists from different sources while maintaining the structure. I wanted to extend the parser and make it work with HTML first but quickly figured that the easiest would be to just get the HTML data (text/html) from the clipboard and transform it to markdown — this solution makes it possible to not only work with lists but with literally any rich data.

How to test:

  1. Go to any source of rich data (I was using https://github.com/HumbleUI/HumbleUI#motivation)
  2. Just copy the HTML and paste it to Athens.
  3. You can also insert the raw data in Markdown format, it will also be parsed and inserted correctly.

Screenshot 2022-10-04 at 14 22 32

@vercel
Copy link

vercel bot commented Oct 4, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
athens ✅ Ready (Inspect) Visit Preview Oct 5, 2022 at 4:19PM (UTC)

@CLAassistant
Copy link

CLAassistant commented Oct 4, 2022

CLA assistant check
All committers have signed the CLA.

@tangjeff0 tangjeff0 removed the request for review from sid597 October 5, 2022 15:31
@tangjeff0 tangjeff0 merged commit 12dba19 into athensresearch:main Oct 5, 2022
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.

3 participants