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

Lint: disallow diff as code fence language in favour of syntax highlighting diffs #1387

Closed
IgnaceMaes opened this issue Jul 22, 2024 · 0 comments · Fixed by #1388
Closed
Labels
help wanted Extra attention is needed

Comments

@IgnaceMaes
Copy link
Member

In the following PR, code block fences with diff as language were refactored to use the data-diff attributes of the syntax highlighter: #1385

Linting should be added against diff as language to not allow any new usages.

Bad

\```diff
- some deletion
+ some addition
\```

Good

\```js {data-diff="-1,+2"}
some deletion
some addition
\```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant