Feature Description
In markdown, one regularly ends up with snippets, like:
# an example snippet
mkdir some_dir
At present, it looks like codebook flashes mkdir in the snippet as a typo; for example:
but mkdir is not flashed as a typo when using codebook directly on a .sh file:
Use Case
Is there a way to make codebook aware of code snippets in markdown (and possibly down the line in other languages if relevant), and apply, if available, the relevant spellcheck rules?
Proposed Solution
No idea if / how easy this would be - is there a way in tree-sitter to easily spot code snippets within markdown, and then to use inside this snippet codebook with another language config?
Alternative Solutions
For now I just get spellcheck errors that are not correct - a tiny bit annoying, but I can live with it :) .
Examples
Have a markdown file:
"
This is a file with a snippet:
# some bash; mkdir in a .sh file is fine by codebook, but will be spotted when inside a snippet in a markdown file
mkdir some_dir
"
the mkdir gets flashed as a typo:
Additional Context
No response