question: how do I ignore specific types of codeblocks? #175
Replies: 4 comments 5 replies
-
I am assuming you are using the HTML filter. If you are, you can use the The document mentions that the CSS selector lib that is used is Soup Sieve (which I also maintain). You may find the custom pseudo-class |
Beta Was this translation helpful? Give feedback.
-
Thanks @facelessuser. I was looking for something a bit simpler. Maybe your answer will make more sense to me when I have a bit more experience re: pyspelling |
Beta Was this translation helpful? Give feedback.
-
tbh, what I would like to do is look for
and ignore everything in that block |
Beta Was this translation helpful? Give feedback.
-
ah - now that's what I was looking for, I think. That's very helpful. Let me give it a shot - thank you. |
Beta Was this translation helpful? Give feedback.
-
In our project we are scanning all .md files. Those files contain blocks of code that are to be executed, and other blocks that are not intended to be executed - these blocks are just output from the commands. The output blocks contain UIDs typically. These fail a spellcheck of course. I want to spellcheck codeblocks that have commands to run which are inside:
and ignore blocks that have output:
what do you suggest I use for ignoring this type of input to pyspelling. Both blocks are wrapped in
when converted to html, but I ignore the generated files.
example of what we are spellchecking is https://docs.kubestellar.io/main/Coding%20Milestones/PoC2023q1/example1/
Thank you
Beta Was this translation helpful? Give feedback.
All reactions