Action to convert drafts to rich text and then share with iOS share sheet?


#1

Pretty new drafts user here. I’m trying to create an action that takes drafts text, converts to rich text and then opens the share sheet to share with another app. I started with the “Copy as Rich Text” action and then added a step to Share (which opens share sheet) but the format is plain text. See screenshot #1

I find that if I use the “Copy as Rich task” action and then manually paste the text into an application, it looks line. See screenshot #2.

What am I missing? I’m trying to take text and copy it to Microsoft Word. Any help is much appreciated. Thank you.


#2

Try this - Rich Text to Share Sheet


#3

Thanks for the tip. I tried it and it looks like it converts to html.


#4

When testing with an e-mail like you had above, I got this…

Top left = starting content
Top right = selection of action
Bottom left = share to Mail
Bottom right = output in a new mail

Are you getting a different result or is the result different when you are sharing into Word?


#5

Thanks for the reply. Here are some screenshots.

  1. Text in drafts 5
  2. Output using Rich Text to Share Sheet action in ios Mail
  3. Output when using Markdown Mail action

Not sure what is going and why I’m getting a different output using the Markdown Mail action compared to Rich Text to Share action.


#6

I now see a few settings in the Drafts 5 that relate to the Share Extension. Here are my settings. What are yours? I tried changing the settings from Markdown to Plain Text to Simple List and didn’t see any difference in output in ios Mail.

Any ideas?
@agiletortoise any ideas?


#7

I think the extension settings would only apply to content shared into Drafts and the template specifically from Safari as it states.

I’m not sure of the reason (i.e. not looked into it yet), but it looks like the prefix stuff from my sample MMD content (authored by Fletcher penny) is affecting it in a positive way.

Try this as your draft…

latex input:		mmd-article-header

Testing

1. **bold**
2. *italic*
3. (Data)

#8

Weird. I’m still seeing html type format.

I have no issues with the Markdown email action. Or the copy as rich text action. Its just when I try to share with any application in the share sheet that Ihave issues.


#9

There’s no way to share as rich text. You have to use the clipboard. It’s been a while since I experimented, but last time I tried actually passing attributed text to share extensions it got ignored and converted to plain text by most share extensions anyway.