I’ve used pandoc a lot before to convert Markdown files to PDFs. I just found out it can also convert reStructuredText text files to Markdown format:
sudo launchctl bootout gui/$(id -u <username>) # or sudo launchctl bootout user/$(id -u <username>) Works on macOS 10.11.x or later.
Enter a line of Bash starting with a # comment, then run !:q on the next line to see what that would be with proper Bash escaping applied.