Skip to content

Commit a0c4c1c

Browse files
authored
Fixes cli error for Asciidoctor (#12677)
The original fix for #8676 introduced illegal arguments for Asciidoctor, causing no rendering at all. This PR fixes the command line arguments so that Asciidoctor properly renders the text. See https://asciidoctor.org/docs/user-manual/#piping-content-through-the-cli as reference.
1 parent 3270e7a commit a0c4c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/doc/advanced/external-renderers.en-us.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ add one `[markup.XXXXX]` section per external renderer on your custom `app.ini`:
5353
[markup.asciidoc]
5454
ENABLED = true
5555
FILE_EXTENSIONS = .adoc,.asciidoc
56-
RENDER_COMMAND = "asciidoctor -e -a leveloffset=-1 --out-file=- -"
56+
RENDER_COMMAND = "asciidoctor -s -a showtitle --out-file=- -"
5757
; Input is not a standard input but a file
5858
IS_INPUT_FILE = false
5959
@@ -93,4 +93,4 @@ To define multiple entries, add a unique alphanumeric suffix (e.g., `[markup.san
9393
Once your configuration changes have been made, restart Gitea to have changes take effect.
9494

9595
**Note**: Prior to Gitea 1.12 there was a single `markup.sanitiser` section with keys that were redefined for multiple rules, however,
96-
there were significant problems with this method of configuration necessitating configuration through multiple sections.
96+
there were significant problems with this method of configuration necessitating configuration through multiple sections.

0 commit comments

Comments
 (0)