mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 05:04:43 -04:00
Fixes #7698.
markup: Allow installed arbitrary Asciidoc extension via path validation.
This commit is contained in:
parent
b51017445a
commit
d80bf61b7f
@ -100,6 +100,8 @@ Below are all the AsciiDoc related settings in Hugo with their default values:
|
|||||||
|
|
||||||
{{< code-toggle config="markup.asciidocExt" />}}
|
{{< code-toggle config="markup.asciidocExt" />}}
|
||||||
|
|
||||||
|
Notice that for security concerns only extensions that do not have path separators (either `\`, `/` or `.`) are allowed. That means that extensions can only be invoked if they are in one's ruby's `$LOAD_PATH` (ie. most likely, the extension has been installed by the user). Any extension declared relative to the website's path will not be accepted.
|
||||||
|
|
||||||
Example of how to set extensions and attributes:
|
Example of how to set extensions and attributes:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user