Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Markdown linter throws false positives if definitions are only used inside admonition blocks #1760

Conversation

oesteban
Copy link
Collaborator

@oesteban oesteban commented Apr 2, 2024

What we see in the context of #1750 seems to respond to remarkjs/remark-lint#307.

This bugfix adds the dependency (as suggested in the issue) and adds one canary to ensure it is working.

cc/ @Remi-Gau

@oesteban oesteban marked this pull request as draft April 2, 2024 13:10
@oesteban
Copy link
Collaborator Author

oesteban commented Apr 2, 2024

Converting to draft because this doesn't seem to work. And it seems the common-principles.md file is not linted?

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.93%. Comparing base (dbcb237) to head (1bc2fc4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1760   +/-   ##
=======================================
  Coverage   87.93%   87.93%           
=======================================
  Files          16       16           
  Lines        1351     1351           
=======================================
  Hits         1188     1188           
  Misses        163      163           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Remi-Gau
Copy link
Collaborator

Remi-Gau commented Apr 2, 2024

not sure if it helps but I had to tweak some remark linting rules when I introduced admonitions:

["remark-lint-code-block-style", false],

@oesteban
Copy link
Collaborator Author

oesteban commented Apr 2, 2024

not sure if it helps but I had to tweak some remark linting rules when I introduced admonitions:

["remark-lint-code-block-style", false],

Thanks for the suggestion. A naive addition of the plugin did not work (cd9c926)

@oesteban
Copy link
Collaborator Author

oesteban commented Apr 2, 2024

Defining the links inside the admonition at hand does the trick. Closing as not needed.

@oesteban oesteban closed this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants