Implement the man(7) .MR macro, a 2023 GNU extension.
authorschwarze <schwarze@openbsd.org>
Tue, 24 Oct 2023 20:30:49 +0000 (20:30 +0000)
committerschwarze <schwarze@openbsd.org>
Tue, 24 Oct 2023 20:30:49 +0000 (20:30 +0000)
commitf66971330e58e0567a0c2de8fbfcab971f206621
treeb5cc889a41bf94cd77f2404fd8640d75d38b8c59
parent494a7cf85469b394e4c37f44b35e061a9ec02913
Implement the man(7) .MR macro, a 2023 GNU extension.
The syntax and semantics is almost identical to mdoc(7) .Xr.

This will be needed for reading the groff manual pages once our port
will be updated to 1.23, and the Linux Manual Pages Project is also
determined to start using it sooner or later.  I did not advocate for
this new macro, but since we want to remain able to read all manual
pages found in the wild, there is little choice but to support it.
At least it is easy to do, they basically copied .Xr.
12 files changed:
regress/usr.bin/mandoc/man/MR/Makefile [new file with mode: 0644]
regress/usr.bin/mandoc/man/MR/basic.in [new file with mode: 0644]
regress/usr.bin/mandoc/man/MR/basic.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/man/MR/basic.out_lint [new file with mode: 0644]
regress/usr.bin/mandoc/man/Makefile
usr.bin/mandoc/man_html.c
usr.bin/mandoc/man_macro.c
usr.bin/mandoc/man_term.c
usr.bin/mandoc/man_validate.c
usr.bin/mandoc/mandoc.1
usr.bin/mandoc/roff.c
usr.bin/mandoc/roff.h