feat(theme-common): code block MagicComments support for Lua/Haskell -- and WebAssembly ;;#8870
Conversation
| default: | ||
| // All comment types | ||
| return getCommentPattern( |
There was a problem hiding this comment.
You should remove the lua pattern by default. There are too many false-positives
There was a problem hiding this comment.
You're right. I have updated the PR
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
⚡️ Lighthouse report for the deploy preview of this PR
|
66eec0c to
24cde7d
Compare
24cde7d to
f878bc0
Compare
|
Thanks for your PR How can I review it? Can you provide me a test link on the preview? I suggest creating 3 new code blocks (lua,haskell,wasm) on |
51493fe to
62358fc
Compare
@slorber, I have included the dogfooding tests, as well as added support for SQL, as its single-line comment syntax is similar to that of Lua and Haskell. |
Add support for Lua, haskell, SQL and wasm comment style for MagicComments. Related #8859
Pre-flight checklist
Motivation
Test Plan
Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
https://deploy-preview-8870--docusaurus-2.netlify.app/tests/pages/code-block-tests
Related issues/PRs
#8859