Skip to content

False positive: Section title rule triggers inside source code blocks #52

Description

@raifdmueller

Description

The heading rule (section title should be preceded by a blank line) triggers on content inside AsciiDoc source code blocks ([source,asciidoc] with ---- delimiters).

Steps to Reproduce

Given this AsciiDoc file:

Some text before:

[source,asciidoc]
----
=== S-01: Buchung manuell erfassen

Status:: Offen
----

Running asciidoc-linter file.adoc reports:

✗ file.adoc, line 5: Section title should be preceded by a blank line

Expected Behavior

Content inside ---- delimited blocks should be skipped by all rules, since it is literal/source content, not actual AsciiDoc structure.

Actual Behavior

The linter parses === S-01: inside the code block as a real section title and flags it.

Environment

  • asciidoc-linter 0.1.0 (installed from git main branch)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions