Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert markdown to reStructuredtest?

How can I convert a file named index.md into a reStructuredText fileindex.rst without manual editing or anything?

How about vice-verse?

What is the general syntax of such changes?

like image 789
Himanshu Mishra Avatar asked Jul 14 '26 09:07

Himanshu Mishra


1 Answers

pandoc --from=markdown --to=rst --output=index.rst index.md

For the reverse you can try pretty much the same thing

pandoc --from=rst --to=markdown --output=README.md README.rst

The general syntax is

pandoc --from={type} --to={type} --output={filename} {input-filename}

like image 149
Himanshu Mishra Avatar answered Jul 18 '26 12:07

Himanshu Mishra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!