From 64ec52d2dacb0ff9c5e54ff47bc35f56a67b18ea Mon Sep 17 00:00:00 2001 From: Sarah White Date: Thu, 19 Nov 2020 15:45:59 -0700 Subject: create integration modules; update stylesheet pages --- docs/modules/api/pages/set-safe-mode.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/modules/api') diff --git a/docs/modules/api/pages/set-safe-mode.adoc b/docs/modules/api/pages/set-safe-mode.adoc index dcf13af6..8ff65b5d 100644 --- a/docs/modules/api/pages/set-safe-mode.adoc +++ b/docs/modules/api/pages/set-safe-mode.adoc @@ -3,6 +3,9 @@ The default xref:ROOT:safe-modes.adoc[safe mode] in the API is `SECURE`. You can change the safe mode using a string, symbol or integer value. + +== Set :safe option + The value must be set in the document constructor using the `:safe` option. result = Asciidoctor.convert_file('master.adoc', :safe => 'server') @@ -15,4 +18,4 @@ or result = Asciidoctor.convert_file('master.adoc', :safe => 10) -You can also set the xref:cli:set-safe-mode.adoc[safe mode from the CLI] and xref:ROOT:attributes-and-safe-modes.adoc[manage attributes by safe mode]. +You can also set the xref:cli:set-safe-mode.adoc[safe mode from the CLI] and xref:ROOT:reference-safe-mode.adoc[enable or disable content based on the current safe mode]. -- cgit v1.2.3