Skip to content

BlockIgnores do not work in .html files #507

@phxnsharp

Description

@phxnsharp

A BlockIgnores statement does not work for .html files. Hugo allows us to have custom content using a special tag which we would like to have Vale ignore.

<h2>
Header content
</h2>

	{{< cardpane >}}
	{{< card 
		header="Card Title" >}}
		Content of card
	</div>
	{{< /card >}}

Relevant part of .vale.ini

...
[*.{md,rst,html}]

# Accept HUGO shortcuts/commands
BlockIgnores = (?s) *({{< [^>]* >}})

...

The BlockIgnores as specified above does work in .md files.

Since the code to implement BlockIgnores is in the same function as ignoring the front matter, this issue is probably related to #506.

vale version 2.20.2
Ubuntu 20.04.5 LTS

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