summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-09-10 16:22:32 +0100
committerMichael Williamson <mike@zwobble.org>2025-09-10 16:22:32 +0100
commit2ae24020f8cd5a6b9c07e368c5b8726780dd92bb (patch)
treebd64868dea35440f720e01840ff16ebefcfa9423
parent1494d3c3a6283a00701ac452b8a9a5f8f2f4e9dd (diff)
Move externalFileAccess docs into docs for options
-rw-r--r--README.md16
1 files changed, 4 insertions, 12 deletions
diff --git a/README.md b/README.md
index 79a49b3..442ca62 100644
--- a/README.md
+++ b/README.md
@@ -230,18 +230,6 @@ var options = {
};
```
-#### External file access
-
-Source documents may reference files outside of the source document.
-To disable access to any such external files during the conversion process,
-set `options.externalFileAccess` to `false`:
-
-```javascript
-var options = {
- externalFileAccess: false
-};
-```
-
#### Custom image handlers
By default, images are converted to `<img>` elements with the source included inline in the `src` attribute.
@@ -388,6 +376,10 @@ Converts the source document to HTML.
To stop using the default style map altogether,
set `options.includeDefaultStyleMap` to `false`.
+ * `externalFileAccess`: Source documents may reference files outside of the source document.
+ To disable access to any such external files during the conversion process,
+ set `options.externalFileAccess` to `false`.
+
* `convertImage`: by default, images are converted to `<img>` elements with the source included inline in the `src` attribute.
Set this option to an [image converter](#image-converters) to override the default behaviour.