Skip to content

Commit 676581c

Browse files
committed
Move external_file_access docs into docs for arguments
1 parent 150bf98 commit 676581c

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,6 @@ pass `include_default_style_map=False`:
178178
result = mammoth.convert_to_html(docx_file, style_map=style_map, include_default_style_map=False)
179179
```
180180

181-
#### External file access
182-
183-
Source documents may reference files outside of the source document.
184-
To disable access to any such external files during the conversion process,
185-
pass `external_file_access=False`:
186-
187-
```javascript
188-
result = mammoth.convert_to_html(docx_file, external_file_access=False)
189-
```
190-
191181
#### Custom image handlers
192182

193183
By default, images are converted to `<img>` elements with the source included inline in the `src` attribute.
@@ -300,6 +290,10 @@ Converts the source document to HTML.
300290
To stop using the default style map altogether,
301291
pass `include_default_style_map=False`.
302292

293+
* Source documents may reference files outside of the source document.
294+
To disable access to any such external files during the conversion process,
295+
pass `external_file_access=False`.
296+
303297
* `convert_image`: by default, images are converted to `<img>` elements with the source included inline in the `src` attribute.
304298
Set this argument to an [image converter](#image-converters) to override the default behaviour.
305299

0 commit comments

Comments
 (0)