Sample Header Ad - 728x90

Convert HTML hyperlink code to Markdown (MD) in pure AppleScript?

1 vote
1 answer
476 views
I have a text file or some text to process via the clipboard. It contains a few lines of HTML code, and I'd like to convert it to pure Markdown. E.g. from: This is a link: link to: This is a link: [link](https://duck.com) Is there pure AppleScript code (using regex substitution) that can do this? Alternatively, I am happy with AppleScript calling any CLI tool to process the text via do shell script if it's an in-built text which doesn't require homebrew or a third party tool to be installed.
Asked by user163629
Oct 23, 2020, 03:53 PM
Last activity: Oct 24, 2020, 12:45 PM