I found THIS on stackoverflow forum. Here is the command line itself:
textutil -stdin -convert html -stdout | pandoc --from=html --to=markdown
Can someone explain stdin and stdout please as opposed to actual file names? I’m guessing that if in Terminal and I am “in” folder named “ABC” (cd “ABC”) this will run on all html files in that folder? I can’t seem to get this to work and my understanding is not good enough to troubleshoot.
Any help/comments appreciated. If you know a conversion tool from rtf to markdown would you let me know please. I basically need to retain bold and italic tags from the rtf.