errose28 commented on code in PR #118:
URL: https://github.com/apache/ozone-site/pull/118#discussion_r1894472973
##########
cspell.yaml:
##########
@@ -33,6 +33,26 @@ import:
- "@cspell/dict-shell/cspell-ext.json"
- "@cspell/dict-docker/cspell-ext.json"
+languageSettings:
+- languageId:
+ - markdown
+ - mdx
+ ignoreRegExpList:
+ - markdown_code_block
+ - markdown_inline_code
+
+patterns:
+- name: markdown_code_block
+ pattern: |
+ /
+ ^(\s*`{3,}).* # match the ```
+ [\s\S]*? # the block of code
Review Comment:
This is the pattern provided by the cspell docs that I copied here and
tested out. ChatGPT says `.` will not match newlines and `[\s\S]` is a
workaround to catch multi-line code blocks. However, when I tested it locally,
`.` also seemed to work for multiple lines.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]