-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
SQL block does not support block magic comments #10748
Comments
Looks like we don't support multi-line comments for SQL, only single-line This works: ```sql
insert into BOOK(
ID, NAME, EDITION, PRICE, STORE_ID
) values(?, ?, ?, ?, ?)
/* batch-0: [100, SQL in Action, 1, 59.9, 2] */
-- highlight-next-line
/* batch-1: [7, LINQ in Action, 3, 49.9, 2] */
``` I think it should be pretty easy to add SQL multi-line comments, if anyone from the community want to contribute that in |
I want to contribute to this is it still open ? |
You can submit a PR directly |
i made the changes but how i test those by viewing them,so that i can confirm |
i am not sure how to view it even after changes it looks it is not taking effect created a seprate case for sql inside getAllMagicCommentDirectiveStyles function
|
We can't help you without seeing a PR including all your code and how it renders in the Netlify preview sorry. Please submit a draft PR and we'll review your attempt. |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I write sql code block like this
I used
/* highlight-next-line */
to highlight the last line, but it is actually not highlightedThis magic comment works normally for all languages except sql.
Reproducible demo
No response
Steps to reproduce
Just write a code block
highlight-next-line
Expected behavior
The next lien should be highlighted
Actual behavior
The next line is not highlighted
This bug only appears when language is SQL
Your environment
OS: Mac-M1
Docusaurus: 3.6.3
Node version: 22.2.0
Self-service
The text was updated successfully, but these errors were encountered: