From 54b377278187f02621a60b3585de4ec02399234a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 22 Jun 2020 10:27:47 -0700 Subject: Re-add `--safe` command-line option as a no-op. See #344. --- man/man1/cmark.1 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'man') diff --git a/man/man1/cmark.1 b/man/man1/cmark.1 index 71db059..0771400 100644 --- a/man/man1/cmark.1 +++ b/man/man1/cmark.1 @@ -49,14 +49,18 @@ be rendered as curly quotes, depending on their position. \f[C]\-\-\-\f[] will be rendered as an em-dash. \f[C]...\f[] will be rendered as ellipses. .TP 12n -.B \-\-unsafe -Render raw HTML or potentially dangerous URLs. -By default, raw HTML is replaced by a placeholder comment +.B \-\-safe +Omit raw HTML and potentially dangerous URLs (default). +Raw HTML is replaced by a placeholder comment and potentially dangerous URLs are replaced by empty strings. -Dangerous URLs are those that begin with `javascript:`, +Potentially dangerous URLs are those that begin with `javascript:`, `vbscript:`, `file:`, or `data:` (except for `image/png`, `image/gif`, `image/jpeg`, or `image/webp` mime types). .TP 12n +.B \-\-unsafe +Render raw HTML or potentially dangerous URLs, overriding +the default (\-\-safe) behavior. +.TP 12n .B \-\-help Print usage information. .TP 12n -- cgit v1.2.3