Use SKIP for multiple headings #1296
-
Using remark-toc, it seems the This does not work:
|
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Mar 11, 2024
Replies: 1 comment 1 reply
-
Welcome @djmtype! 👋 skip: 'Fruit|Vegetables|HABA' You can learn more about regular expressions here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
djmtype
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welcome @djmtype! 👋
I'd highly recommend reading the readme https://github.com/remarkjs/remark-toc?tab=readme-ov-file#options
Skip is not a string, it is a regular expression, you can add as many strings as you'd like separated by the pipe character.
skip: 'Fruit|Vegetables|HABA'
You can learn more about regular expressions here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions