From ecd0c8c23f011e845ca96704b154083c0f07a994 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 19 Mar 2019 16:27:24 -0700 Subject: Define CMARK_OPT_SAFE for API compatibility. It doesn't do anything; this is documented. --- src/cmark.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cmark.h') diff --git a/src/cmark.h b/src/cmark.h index ad9d4c4..102aa6f 100644 --- a/src/cmark.h +++ b/src/cmark.h @@ -552,6 +552,12 @@ char *cmark_render_latex(cmark_node *root, int options, int width); */ #define CMARK_OPT_HARDBREAKS (1 << 2) +/** `CMARK_OPT_SAFE` is defined here for API compatibility, + but it no longer has any effect. "Safe" mode is now the default: + set `CMARK_OPT_UNSAFE` to disable it. + */ +#define CMARK_OPT_SAFE (1 << 3) + /** Render raw HTML and unsafe links (`javascript:`, `vbscript:`, * `file:`, and `data:`, except for `image/png`, `image/gif`, * `image/jpeg`, or `image/webp` mime types). By default, -- cgit v1.2.3