ltex-plus / ltex-ls-plus

LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://ltex-plus.github.io/ltex-plus/
Mozilla Public License 2.0
13 stars 3 forks source link

Enable magic comments in (X)HTML #32

Closed JonasWischeropp closed 1 month ago

JonasWischeropp commented 1 month ago

This PR makes it possible to use magic comments in HTML files (#31).

JonasWischeropp commented 1 month ago

Converted to draft, because I decided to make some changes.

JonasWischeropp commented 1 month ago

I have implemented a proper HtmlFragmentizer. Before the complete document was checked, resulting in a lot of false positives. These were especially prominent in non-English languages, where strings like body or id inside tags (<body>, <p id="...">) were checked. Now, only the text in between tags is checked (<Not checked>Checked</Not checked>) and magic comments are supported.

spitzerd commented 1 month ago

Thank you for your contribution of a new feature and the corresponding tests 👍 I will merge your pull request and add you and your feature in changelog.xml I am looking forward to see you again as contributor for LTeX+

JonasWischeropp commented 1 month ago

Thank you. I see you have also already adjusted the documentation👍.