Skip to content

Comment-Based Disabling of Value Rules Breaks Asciidoctor PDF Generation #1009

@p0fi

Description

@p0fi

Check for existing issues

  • Completed

Environment

  • OS: macOS
  • Install Method: Homebrew
  • Vale Version: 3.11.2

Describe the bug / provide steps to reproduce it

When trying to disable a specific rule (or vale entirely) via the method described here: https://vale.sh/docs/formats/asciidoc

The generation of a PDF from that source fails. This is the error generated:

asciidoctor: ERROR: failed to parse formatted text: <!-- vale off --> (reason: Expected one of 'br', 'img', 'a', 'strong', 'em', 'code', 'font', 'span', 'button', 'kbd', 'sup', 'sub', 'mark', 'menu', 'del' after < at byte 2)

This is most likely due to the fact that Asciidoctor with backend PDF does only have limited support for passthrough syntax. As described here: https://docs.asciidoctor.org/pdf-converter/latest/passthrough-content/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions