---
name: "m2r"
section: "1"
platform: "linux"
package: "m2r"
version: "0.3.1-0.1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/m2r"
---

# m2r(1)

command-line tool to convert from markdown containing reStructuredText (rst) to reStructuredText

## NAME

m2r - command-line tool to convert from markdown containing reStructuredText (rst) to reStructuredText

## DESCRIPTION

usage: m2r \[-h\] \[--overwrite\] \[--dry-run\] \[--no-underscore-emphasis\]

-

  \[--parse-relative-links\] \[--anonymous-references\] \[--disable-inline-math\] \[input\_file ...\]

### positional arguments:

- input\_file

  files to convert to reST format

### options:

- **-h**, **--help**

  show this help message and exit

- **--overwrite**

  overwrite output file without confirmaion

- **--dry-run**

  print conversion result and not save output file

- **--no-underscore-emphasis**

  do not use underscore (\_) for emphasis

- **--parse-relative-links**

  parse relative links into ref or doc directives

- **--anonymous-references**

  use anonymous references in generated rst

- **--disable-inline-math**

  disable parsing inline math
