vscode-spell-checker icon indicating copy to clipboard operation
vscode-spell-checker copied to clipboard

ignoreRegExp for markdown code blocks

Open notstyle opened this issue 3 years ago • 2 comments

Hi,

Can not get working ignore for markdown code blocks, for example:

<!-- cSpell:ignoreRegExp ```[a-z]*\n[\s\S]*?\n``` -->

ignore do not work for code block:

  "runtimeOptions": {
      "tfm": "netcoreapp3.1",
      "framework": {
          "name": "Microsoft.NETCore.App",
          "version": "3.1.0"
      }
  }

notstyle avatar Sep 14 '22 14:09 notstyle

@notstyle Try putting it on its own line:

<!---
cSpell:ignoreRegExp /^(\s*`{3,})[a-z]*[\s\S]*?^\1/gm
--->

See: https://regex101.com/r/Xo1fnr/1

Jason3S avatar Sep 14 '22 16:09 Jason3S

Note: <!--- with 3 -, tells Markdown not to include the comment in the rendered HTML.

Jason3S avatar Sep 14 '22 16:09 Jason3S