summaryrefslogtreecommitdiff
path: root/src/cmark.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-03-19 16:27:24 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-19 16:27:24 -0700
commitecd0c8c23f011e845ca96704b154083c0f07a994 (patch)
treef9961b549ccaa8cf8ba4919f89b0a1cd5ec276be /src/cmark.h
parent325a1471d2a32bcc1e2d2580b973ff4ba1df85e8 (diff)
Define CMARK_OPT_SAFE for API compatibility.
It doesn't do anything; this is documented.
Diffstat (limited to 'src/cmark.h')
-rw-r--r--src/cmark.h6
1 files changed, 6 insertions, 0 deletions
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,