Skip to content

Two words split by code block in MDX #1052

@verhovsky

Description

@verhovsky

Check for existing issues

  • Completed

Environment

  • macOS
  • Homebrew
  • vale version 3.13.0

Describe the bug / provide steps to reproduce it

This file:

in `$VARIABLE` for.

information

when parsed as MDX with this .vale.ini

SkippedScopes = code

[formats]
mdx = md

[*.mdx]
BasedOnStyles = Vale

Gives this error:

 test.mdx
 3:1  error  Did you really mean 'infor'?  Vale.Spelling 

✖ 1 error, 0 warnings and 0 suggestions in 1 file.

There should be no error because "in" "for" and "information" are all normal words. For some reason having "in" and "for" separated with a code block and then followed by a word that uses both words causes an error on that word (notice the error is on line 3, not 1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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