diff --git a/src/package.ts b/src/package.ts
index bda1dd7b..e27f9f1e 100644
--- a/src/package.ts
+++ b/src/package.ts
@@ -709,7 +709,7 @@ export class MarkdownProcessor extends BaseProcessor {
contents = contents.replace(markdownPathRegex, urlReplace);
// Replace links with urls
- contents = contents.replace(//g, (all, link) => {
+ contents = contents.replace(//g, (all, link) => {
const isLinkRelative = !/^\w+:\/\//.test(link) && link[0] !== '#';
if (!this.baseImagesUrl && isLinkRelative) {
diff --git a/src/test/fixtures/readme/readme.branch.main.expected.md b/src/test/fixtures/readme/readme.branch.main.expected.md
index 7058873a..e6713e8c 100644
--- a/src/test/fixtures/readme/readme.branch.main.expected.md
+++ b/src/test/fixtures/readme/readme.branch.main.expected.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://github.com/username/repository/raw/main/images/SpellMDDemo2.gif)](https://github.com/username/repository/blob/main/monkey)
![](https://github.com/username/repository/raw/main/images/SpellMDDemo2.gif)
![](https://github.com/username/repository/raw/main/SpellMDDemo2.gif)
+![](https://github.com/username/repository/raw/main/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.branch.override.content.expected.md b/src/test/fixtures/readme/readme.branch.override.content.expected.md
index 1f59d470..772bb10d 100644
--- a/src/test/fixtures/readme/readme.branch.override.content.expected.md
+++ b/src/test/fixtures/readme/readme.branch.override.content.expected.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://github.com/base/images/SpellMDDemo2.gif)](https://github.com/base/monkey)
![](https://github.com/base/images/SpellMDDemo2.gif)
![](https://github.com/base/SpellMDDemo2.gif)
+![](https://github.com/base/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.branch.override.images.expected.md b/src/test/fixtures/readme/readme.branch.override.images.expected.md
index ea96add2..3780eab2 100644
--- a/src/test/fixtures/readme/readme.branch.override.images.expected.md
+++ b/src/test/fixtures/readme/readme.branch.override.images.expected.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://github.com/base/images/SpellMDDemo2.gif)](https://github.com/username/repository/blob/main/monkey)
![](https://github.com/base/images/SpellMDDemo2.gif)
![](https://github.com/base/SpellMDDemo2.gif)
+![](https://github.com/base/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.default.md b/src/test/fixtures/readme/readme.default.md
index 2be2f213..02dc963c 100644
--- a/src/test/fixtures/readme/readme.default.md
+++ b/src/test/fixtures/readme/readme.default.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://github.com/username/repository/raw/HEAD/images/SpellMDDemo2.gif)](https://github.com/username/repository/blob/HEAD/monkey)
![](https://github.com/username/repository/raw/HEAD/images/SpellMDDemo2.gif)
![](https://github.com/username/repository/raw/HEAD/SpellMDDemo2.gif)
+![](https://github.com/username/repository/raw/HEAD/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.expected.md b/src/test/fixtures/readme/readme.expected.md
index bfc89854..b6ed6854 100644
--- a/src/test/fixtures/readme/readme.expected.md
+++ b/src/test/fixtures/readme/readme.expected.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://github.com/username/repository/raw/master/images/SpellMDDemo2.gif)](https://github.com/username/repository/blob/master/monkey)
![](https://github.com/username/repository/raw/master/images/SpellMDDemo2.gif)
![](https://github.com/username/repository/raw/master/SpellMDDemo2.gif)
+![](https://github.com/username/repository/raw/master/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.gitlab.branch.main.expected.md b/src/test/fixtures/readme/readme.gitlab.branch.main.expected.md
index 0f889d71..f9859ffc 100644
--- a/src/test/fixtures/readme/readme.gitlab.branch.main.expected.md
+++ b/src/test/fixtures/readme/readme.gitlab.branch.main.expected.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://gitlab.com/username/repository/-/raw/main/images/SpellMDDemo2.gif)](https://gitlab.com/username/repository/-/blob/main/monkey)
![](https://gitlab.com/username/repository/-/raw/main/images/SpellMDDemo2.gif)
![](https://gitlab.com/username/repository/-/raw/main/SpellMDDemo2.gif)
+![](https://gitlab.com/username/repository/-/raw/main/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.gitlab.branch.override.content.expected.md b/src/test/fixtures/readme/readme.gitlab.branch.override.content.expected.md
index 648090c8..579b38bd 100644
--- a/src/test/fixtures/readme/readme.gitlab.branch.override.content.expected.md
+++ b/src/test/fixtures/readme/readme.gitlab.branch.override.content.expected.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://gitlab.com/base/images/SpellMDDemo2.gif)](https://gitlab.com/base/monkey)
![](https://gitlab.com/base/images/SpellMDDemo2.gif)
![](https://gitlab.com/base/SpellMDDemo2.gif)
+![](https://gitlab.com/base/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.gitlab.branch.override.images.expected.md b/src/test/fixtures/readme/readme.gitlab.branch.override.images.expected.md
index 5beb7b7c..cdd362e0 100644
--- a/src/test/fixtures/readme/readme.gitlab.branch.override.images.expected.md
+++ b/src/test/fixtures/readme/readme.gitlab.branch.override.images.expected.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://gitlab.com/base/images/SpellMDDemo2.gif)](https://gitlab.com/username/repository/-/blob/main/monkey)
![](https://gitlab.com/base/images/SpellMDDemo2.gif)
![](https://gitlab.com/base/SpellMDDemo2.gif)
+![](https://gitlab.com/base/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.gitlab.default.md b/src/test/fixtures/readme/readme.gitlab.default.md
index 54b5b499..3d64512c 100644
--- a/src/test/fixtures/readme/readme.gitlab.default.md
+++ b/src/test/fixtures/readme/readme.gitlab.default.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://gitlab.com/username/repository/-/raw/HEAD/images/SpellMDDemo2.gif)](https://gitlab.com/username/repository/-/blob/HEAD/monkey)
![](https://gitlab.com/username/repository/-/raw/HEAD/images/SpellMDDemo2.gif)
![](https://gitlab.com/username/repository/-/raw/HEAD/SpellMDDemo2.gif)
+![](https://gitlab.com/username/repository/-/raw/HEAD/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.images.expected.md b/src/test/fixtures/readme/readme.images.expected.md
index b713c290..aef440fc 100644
--- a/src/test/fixtures/readme/readme.images.expected.md
+++ b/src/test/fixtures/readme/readme.images.expected.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](https://github.com/username/repository/path/to/images/SpellMDDemo2.gif)](https://github.com/username/repository/blob/HEAD/monkey)
![](https://github.com/username/repository/path/to/images/SpellMDDemo2.gif)
![](https://github.com/username/repository/path/to/SpellMDDemo2.gif)
+![](https://github.com/username/repository/path/to/SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
diff --git a/src/test/fixtures/readme/readme.md b/src/test/fixtures/readme/readme.md
index 73a8c557..ce771ad1 100644
--- a/src/test/fixtures/readme/readme.md
+++ b/src/test/fixtures/readme/readme.md
@@ -22,7 +22,9 @@ The status bar lets you quickly navigate to any issue and you can see all positi
[![Jump to issues](images/SpellMDDemo2.gif)](monkey)
![](images/SpellMDDemo2.gif)
![](./SpellMDDemo2.gif)
+![](./SpellMDDemo2.gif#gh-light-mode-only)
+
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.