drahnr / cargo-spellcheck

Checks all your documentation for spelling and grammar mistakes with hunspell and a nlprule based checker for grammar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripped/missing code tags confuse nlprule backend

drahnr opened this issue · comments

Describe the bug

Currently as part of the cmark pre-processing layer, the content of foo is stripped which alters sentence structure and hence make the nlprule backend give suboptimal to blatently wrong results.

To Reproduce

Steps to reproduce the behaviour:

  1. A file containing The foo ``foo`` is a name for a great variable!
  2. Run cargo spellcheck ...
  3. ...

Expected behavior

Detect grammer as before.

Please complete the following information:

  • System: Fedora
  • Obtained: cargo
  • Version: 0.7.x

Additional context

Also messes with lists.