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

FR: Copy as HTML content only, not full page #27

Closed
KuraFire opened this issue May 2, 2023 · 4 comments
Closed

FR: Copy as HTML content only, not full page #27

KuraFire opened this issue May 2, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request next-release To be included in the next release

Comments

@KuraFire
Copy link

KuraFire commented May 2, 2023

Is your feature request related to a problem? Please describe.
I like this plugin except for the fact that it creates an entire HTML page document, instead of just HTML for the contents of the note. I'm not looking to paste the entire page into a blank text file and save it as .html, or use it to compose a styled email. I just want to "copy as HTML" much in the same way that the Ulysses writing app offers natively: Copy As > HTML. It just takes the markdown and converts it to HTML without adding any fluff.

Describe the solution you'd like
A second hotkey option (so that we can choose which one to use, or use both with different hotkeys) that is something like "Copy as content HTML" or so. Although preferably, I would rename the existing hotkey to "Copy as HTML Page" and this new option "Copy as HTML contents"

Describe alternatives you've considered
The alternative I've considered is not using this plugin and writing in Ulysses.

@mvdkwast mvdkwast added the enhancement New feature or request label Jul 10, 2023
@mvdkwast
Copy link
Owner

Hi @KuraFire, thanks for reporting. If you haven't switched yet, would a setting instead of an extra hotkey be acceptable for you ? I'm afraid that adding too many actions/hotkeys especially for technicalities like how HTML is generated would become confusing for not so technical users.

@mvdkwast
Copy link
Owner

Another thought about this : you say It just takes the markdown and converts it to HTML without adding any fluff. How is styling handled in this case ? Or do you expect bare HTML without styling ?

This plugin exports as a HTML document for 2 reasons :

  • tests showed that pasting only pieces of HTML messes up some editor (for instance gmail)
  • CSS styling is included in the header of the generated HTML file.

@mvdkwast mvdkwast added the question Further information is requested label Jul 10, 2023
@vasilisvg
Copy link

vasilisvg commented Jul 17, 2023

I would very much like this, or a similar feature, as well. I would use it to copy the content into my own websites, and these sites already have their own styling.
For this I only need the content, and no <head>, just the part that right now is put into the <div>. So just the bare HTML of the content, without any styling.

@mvdkwast
Copy link
Owner

Thanks @vasilisvg, this makes sense. That wasn't a use-case I had in mind when I developed this, but should be pretty easy to do. I will try to include this in the next release.

@mvdkwast mvdkwast self-assigned this Aug 15, 2023
@mvdkwast mvdkwast added next-release To be included in the next release and removed question Further information is requested labels Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next-release To be included in the next release
Projects
None yet
Development

No branches or pull requests

3 participants