M2R(1)

πŸ“¦
version 0.3.1 Β· 2 versions
, in debian bookworm, ubuntu noble

✨ M2R(1) ✨

okay bestie, so this is m2r, a lil command-line tool that lives in the User Commands section of the manual (that's the (1) btw, iykyk) πŸ’–


🌸 NAME 🌸

m2r β€” the command-line tool that converts markdown that has reStructuredText (rst) inside it into reStructuredText πŸ¦‹

no cap, that's the whole job. it takes your md and hands you back rst, and honestly? it ate.


πŸ’… DESCRIPTION πŸ’…

here's how you run it, and yes it's giving:

usage: m2r [-h] [--overwrite] [--dry-run] [--no-underscore-emphasis]
       [--parse-relative-links] [--anonymous-references]
       [--disable-inline-math] [input_file ...]

πŸŽ€ positional arguments:

  • input_file β€” the files you wanna convert into reST format πŸ’– (you can pass more than one, she's flexible like that)

🧚 options:

  • -h, --help β€” shows you this help message and then dips. classic. ✨
  • --overwrite β€” overwrites the output file without confirmation πŸ‘€ no "are you sure?" bestie, it just goes. be careful with this one fr fr
  • --dry-run β€” prints the conversion result instead of saving it to an output file 🌈 perfect for a lil vibe check before you commit
  • --no-underscore-emphasis β€” tells her not to use underscore (_) for emphasis πŸ™ˆ
  • --parse-relative-links β€” parses relative links into ref or doc directives πŸ”₯
  • --anonymous-references β€” uses anonymous references in the generated rst πŸ‘‘
  • --disable-inline-math β€” disables parsing inline math πŸ’€ (the math girlies are gonna be so sad but okay)

ngl, if you're converting docs and you want the rst to come out clean on the first try, --dry-run is your bestie before you let --overwrite anywhere near your files πŸ’œ

and that's the whole page! stay slay, convert responsibly 🫢


m2r 0.3.1 🌸 January 2023 πŸŽ€ and yeah, it's filed under M2R(1) β€” mwah, love u, bye πŸ’…βœ¨

πŸ“¦ where this page comes from