aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-11 12:35:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-11 12:35:45 +0000
commit890cc9cbd6565ee3b92c304210f49013e9759f7e (patch)
treef16e7fd636ad2757d76b6fc7962c1492edfae820 /regress/mdoc
parenta6c40a72a232a59361c880ec1ecddfbd5df8eaaa (diff)
downloadmandoc-890cc9cbd6565ee3b92c304210f49013e9759f7e.tar.gz
mandoc-890cc9cbd6565ee3b92c304210f49013e9759f7e.tar.zst
mandoc-890cc9cbd6565ee3b92c304210f49013e9759f7e.zip
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/mdoc')
-rw-r--r--regress/mdoc/Aq/author.out_markdown6
-rw-r--r--regress/mdoc/Lk/noarg.out_markdown2
-rw-r--r--regress/mdoc/Mt/simple.out_markdown4
-rw-r--r--regress/mdoc/Rs/allch.out_markdown4
4 files changed, 8 insertions, 8 deletions
diff --git a/regress/mdoc/Aq/author.out_markdown b/regress/mdoc/Aq/author.out_markdown
index 292eb5c5..85803ee7 100644
--- a/regress/mdoc/Aq/author.out_markdown
+++ b/regress/mdoc/Aq/author.out_markdown
@@ -6,11 +6,11 @@ AQ-AUTHOR(1) - General Commands Manual
# DESCRIPTION
-Name &lt;<addr>&gt; Name &lt;<addr>&gt;
+Name &lt;[addr](mailto:addr)&gt; Name &lt;[addr](mailto:addr)&gt;
# AUTHORS
-Name &lt;<addr>&gt;
-Name &lt;<addr>&gt;
+Name &lt;[addr](mailto:addr)&gt;
+Name &lt;[addr](mailto:addr)&gt;
OpenBSD - November 19, 2014
diff --git a/regress/mdoc/Lk/noarg.out_markdown b/regress/mdoc/Lk/noarg.out_markdown
index f27e0895..16c01df2 100644
--- a/regress/mdoc/Lk/noarg.out_markdown
+++ b/regress/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/mdoc/Mt/simple.out_markdown b/regress/mdoc/Mt/simple.out_markdown
index 0b85b45d..78c21be4 100644
--- a/regress/mdoc/Mt/simple.out_markdown
+++ b/regress/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/mdoc/Rs/allch.out_markdown b/regress/mdoc/Rs/allch.out_markdown
index afc6488f..64b891cc 100644
--- a/regress/mdoc/Rs/allch.out_markdown
+++ b/regress/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,