I will also answer this question with an alternative method I worked out:
set exportedNote to "Example note exported from Apple.
<li>Even **further **indent. With a [link](https://duck.com).</li>
The following example AppleScript code, as coded, is intended to work with bulleted list HTML code as shown in the OP, meaning that what is passed in the variable is just the relevant code to define the bulleted list and not other arbitrary HTML code.
As coded, it will produce the appropriate output for variations of bulleted list HTML code as well, not just ...
Here is one example:
set htmlString to "This is a link: <a href=\"https://duck.com\">link</a>"
set mdString to do shell script "/usr/bin/sed -E -e 's|<a href=\"|[link](|g' -e 's|\">link</a>|)|g' <<< " & htmlString's quoted form
"This is a link: [link](https://duck.com)...
You can install recode via the Terminal with Homebrew:
brew install recode
and then use it to convert HTML to Unicode, like this:
echo '哀牢山' | recode html..utf8
(inspired by @creving's answer on Stack Overflow)
How can I easily, painlessly push text files back and forth between my phone and my laptop?
Use the cloud...
This is what Cloud synchronization was designed for. This will work with iCloud, OneDrive, Dropbox, et al. Simply create a file and put it in the directory that gets synchronized with your chosen service and the file will be available on all of ...
With AirDrop, you can wirelessly send documents, photos, videos,
websites, map locations, and more to a nearby Mac, iPhone, iPad, or
You should be able to “share” the text file and select your iPhone under AirDrop.
Another option is to Copy and paste between devices:
With Universal Clipboard, you can copy text, images, photos, and