Allow paste from clipboard to view content in Markdown

Brad Brown's Avatar

Brad Brown

04 Apr, 2016 09:43 PM

I use Markdown syntax frequently in documents, notes, inside applications, inside comment blocks in code, etc. I would love to be able to

- Highlight a block of Markdown-formatted text
- Copy to clipboard
- Paste into Markdown
- See the formatted block of text in the Markdown window
- Close the window - I don't need to save it.

EVEN BETTER - Markdown to expose a service, operating on text, that would take the contents of the selected text and render it in a Markdown window. I'd attach that to a keyboard shortcut and be in Markdown heaven...

  1. Support Staff 1 Posted by Brett on 04 Apr, 2016 11:07 PM

    Brett's Avatar

    Copy Markdown text, switch to Marked, hit ⌘⇧V. Is that what you're
    looking for?

    There is also a URL handler for this.
    http://marked2app.com/help/URL_Handler.html#paste

    If you have a Service that just runs the shell command "open
    x-marked://paste" it will perform the above actions for you. You can
    also use "open x-marked://preview?text=escaped%20text" to send a full
    string from a Service that takes a selection and runs it through a basic
    encoding routine.

    More info at http://brettterpstra.com/2015/05/29/marked-url-handler/

    -Brett

  2. 2 Posted by Brad Brown on 04 Apr, 2016 11:38 PM

    Brad Brown's Avatar

    Awesome, thanks, that’s just what I’m looking for!

    RTFM, right?

    Have a great night!

    b
       
       
    Brad Brown | Managing Partner, Red Shift Inc.
    [email blocked] 416-903-4057

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac