markup: Allow installed arbitrary Asciidoc extension via path validation.
This commit is contained in:
gzagatti authored and Bjørn Erik Pedersen committed 2021-02-22 13:52:04 +01:00
1 parent b51017445a
commit d80bf61b7f
1 file changed
+2
+2
View File
@@ -100,6 +100,8 @@ Below are all the AsciiDoc related settings in Hugo with their default values:
{{< 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:
```