Skip to content

Commit

Permalink
fix(theme-common): SQL magic block comments.
Browse files Browse the repository at this point in the history
Add jsBlock comment style to sql code block.
  • Loading branch information
WillBlack403 committed Dec 19, 2024
1 parent c5a6c26 commit d6e1aab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/docusaurus-theme-common/src/utils/codeBlockUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ function getAllMagicCommentDirectiveStyles(

case 'lua':
case 'haskell':
case 'sql':
return getCommentPattern(['lua'], magicCommentDirectives);

case 'sql':
return getCommentPattern(['lua', 'jsBlock'], magicCommentDirectives);

case 'wasm':
return getCommentPattern(['wasm'], magicCommentDirectives);

Expand Down

0 comments on commit d6e1aab

Please sign in to comment.