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

Optional Custom Injection of Content When Copied as HTML #1793

Closed
etcetra opened this issue Dec 4, 2019 · 1 comment
Closed

Optional Custom Injection of Content When Copied as HTML #1793

etcetra opened this issue Dec 4, 2019 · 1 comment

Comments

@etcetra
Copy link

etcetra commented Dec 4, 2019

I am using this application to author Blogger posts.

Due to the way Blooger strips out any list tags when it creates post snippets on home pages I having to inject some extra span tags at the beginning and end of each <li> tag.

To do this I first use the Copy as HTML command in Mark Text. I then double click a Applescript on my desktop to inject the added tags into content from the clipboard. I then paste the content in Blogger's form. This saves having to insert the the tags manually into each post.

I only need to do this when a list appears at a the top of a Blogger post (Mark Text document) and might be included within in that post's snippet on the home page.

At a certain point in the future in Blogger recognizes list tags in its snippets I will not have to do this, but that is likely years away if at all as Google is slow at fixing anything.

I'd like to have a way to optionally inject additional document content when copied to the clipboard. For example, each <li> tags might have <span>content here</span> immediately inserted after it and each </li> tag might have <span>more content here</span> inserted before it when the document's content is copied as HTML.

Not really sure if that would feasible versus just using Applescript.

@etcetra
Copy link
Author

etcetra commented Dec 9, 2019

Decided to solve this using Applescript. I first export from Mark Text as HTML and then doubleclick a Applescript app on the Desktop. The Applescript grabs the HTML from the clipboard, injects some custom HTML into the existing HTML and returns it to the clipboard.

@etcetra etcetra closed this as completed Dec 9, 2019
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

No branches or pull requests

1 participant