summaryrefslogtreecommitdiff
path: root/docs/modules/api
diff options
context:
space:
mode:
Diffstat (limited to 'docs/modules/api')
-rw-r--r--docs/modules/api/pages/set-safe-mode.adoc5
1 files changed, 4 insertions, 1 deletions
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].