From 5315aec2cf374c6bc295a72907c6d47c5aec4fe6 Mon Sep 17 00:00:00 2001 From: Alex Garnett Date: Wed, 7 Aug 2024 09:13:41 -0700 Subject: [PATCH] add regex snipping documentation --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f8e8519..ff4a0d6 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,15 @@ That means that if selectedLines is used, the line numbers to highlight are rela If you use Docusuarus, you just need to add some additional CSS: https://docusaurus.io/docs/markdown-features/code-blocks#line-highlighting +**Regex snipping** + +Instead of specifying a set of line numbers to snip, you can use regular expression patterns to mark the start and end of a snip. +Specify a `startPattern` and an `endPattern`: + +``` + +``` + ## Run From the root directory of your project run the following command: