Skip to content

Two words split by code block in MDX #1052

Closed

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).

Activity

  1. changed the title [-]Two words split by code block[/-] [+]Two words split by code block in MDX[/+] on Nov 4, 2025
  2. colinloretz commented on Nov 4, 2025

    @colinloretz

    I am seeing this as well across multiple words where it is detecting tokens inside full words.

    Specifically for the infor one, the line is:

    The interaction payload will also include a new `attachment_size_limit` key that specifies the maximum allowed attachment size. This limit may be higher than the default attachment size limit, depending on the guild's boost status or the invoking user's Nitro status.
    
    For more information, check out [our documentation on file uploads](/developers/docs/reference#uploading-files).

    When tested in isolation, the same string passes fine:

    echo "For more information, check out [our documentation on file uploads](/developers/docs/reference#uploading-files)." | vale --ext=.mdx

    Other examples of false positives:

     developers/docs/developer-tools/game-sdk.mdx
     157:238  error  Did you really mean 'inin'?    Vale.Spelling 
     274:27   error  Did you really mean 'callin'?  Vale.Spelling 
    
    
     developers/docs/events/gateway.mdx
     304:184  error  Did you really mean 'passin'?  Vale.Spelling 
     609:39   error  Did you really mean 'asin'?    Vale.Spelling 
    
    
     developers/docs/interactions/overview.mdx
     162:239  error  Did you really mean 'ato'?  Vale.Spelling 
    
    
     developers/docs/resources/channel.mdx
     553:48  error  Did you really mean 'bein'?  Vale.Spelling 
    
     developers/docs/tutorials/developing-a-user-installable-app.mdx
     358:220  error  Did you really mean 'inin'?  Vale.Spelling 
    
     developers/docs/change-log.mdx
     745:12  error  Did you really mean 'infor'?  Vale.Spelling 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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