Skip to content

Documentation for enabling Asciidoctor as an external editor leaves artifacts in body #8676

Closed
@chrissexton

Description

@chrissexton
Contributor
  • Gitea version (or commit ref):1.11.0+dev-87-g3c63c3ace built with GNU Make 4.2.1, go1.13.3 : bindata, sqlite, sqlite_unlock_notify
  • Git version:2.22.0
  • Operating system:alpine/docker
  • Database (use [x]):
    • PostgreSQL
      MySQL
      MSSQL
      SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
      No
      Not relevant
  • Log gist:

Description

The suggestion for rendering Asciidoctor via external renderers leaves the footer and the close of the <html lang="en"> tag in the output since it does not use embedded mode.

Asciidoctor should probably be put into embedded mode with -e and told to have a level offset of -1 with -a leveloffset=-1. This appears to work well under my setup.

Screenshots

Before:
Screen Shot 2019-10-24 at 13 53 15

After:
Screen Shot 2019-10-24 at 13 54 20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @chrissexton

        Issue actions

          Documentation for enabling Asciidoctor as an external editor leaves artifacts in body · Issue #8676 · go-gitea/gitea