diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-03-11 12:35:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-03-11 12:35:41 +0000 |
commit | 0144745ed0d3856c4c2059757847f8f052f74c9b (patch) | |
tree | 961c53111e834e6254e8e7083eda8a057969b04c /regress/usr.bin/mandoc/mdoc | |
parent | 056760686abb9e0d0bfddc03547f7bc1979d3643 (diff) |
In markdown, autolinks are dangerous. Different compilers disagree
with respect to what constitutes a valid autolink, and if a compiler
deems an autolink invalid, the input turns into an unintended and
potentially harmful raw HTML tag. So, never write autolinks.
Instead of <link>, write [link](link).
Instead of <addr>, write [addr](mailto:addr).
Issue pointed out by bentley@, who also agrees with the general
direction of the change.
Diffstat (limited to 'regress/usr.bin/mandoc/mdoc')
4 files changed, 8 insertions, 8 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Aq/author.out_markdown b/regress/usr.bin/mandoc/mdoc/Aq/author.out_markdown index 292eb5c573a..85803ee7ef3 100644 --- a/regress/usr.bin/mandoc/mdoc/Aq/author.out_markdown +++ b/regress/usr.bin/mandoc/mdoc/Aq/author.out_markdown @@ -6,11 +6,11 @@ AQ-AUTHOR(1) - General Commands Manual # DESCRIPTION -Name <<addr>> Name <<addr>> +Name <[addr](mailto:addr)> Name <[addr](mailto:addr)> # AUTHORS -Name <<addr>> -Name <<addr>> +Name <[addr](mailto:addr)> +Name <[addr](mailto:addr)> OpenBSD - November 19, 2014 diff --git a/regress/usr.bin/mandoc/mdoc/Lk/noarg.out_markdown b/regress/usr.bin/mandoc/mdoc/Lk/noarg.out_markdown index f27e0895f4c..16c01df2f81 100644 --- a/regress/usr.bin/mandoc/mdoc/Lk/noarg.out_markdown +++ b/regress/usr.bin/mandoc/mdoc/Lk/noarg.out_markdown @@ -9,7 +9,7 @@ LK-NOARG(1) - General Commands Manual two arguments [mandoc](http://mdocml.bsd.lv/) one argument -<http://www.openbsd.org/> +[http://www.openbsd.org/](http://www.openbsd.org/) no argument end of test document diff --git a/regress/usr.bin/mandoc/mdoc/Mt/simple.out_markdown b/regress/usr.bin/mandoc/mdoc/Mt/simple.out_markdown index 0b85b45d4a6..78c21be45e5 100644 --- a/regress/usr.bin/mandoc/mdoc/Mt/simple.out_markdown +++ b/regress/usr.bin/mandoc/mdoc/Mt/simple.out_markdown @@ -7,9 +7,9 @@ MT-SIMPLE(1) - General Commands Manual # DESCRIPTION Please send mail to -<schwarze@openbsd.org>. +[schwarze@openbsd.org](mailto:schwarze@openbsd.org). Do not send mail to -<~>. +[~](mailto:~). OpenBSD - February 17, 2010 diff --git a/regress/usr.bin/mandoc/mdoc/Rs/allch.out_markdown b/regress/usr.bin/mandoc/mdoc/Rs/allch.out_markdown index afc6488f819..64b891cc303 100644 --- a/regress/usr.bin/mandoc/mdoc/Rs/allch.out_markdown +++ b/regress/usr.bin/mandoc/mdoc/Rs/allch.out_markdown @@ -18,7 +18,7 @@ author name, report name, number of journal, volume number, -<uniform resource locator>, +[uniform resource locator](uniform resource locator), page number, institutional author, city name, @@ -40,7 +40,7 @@ author name, report name, number of journal, volume number, -<uniform resource locator>, +[uniform resource locator](uniform resource locator), page number, institutional author, city name, |