PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: platers/obsidian-linter (ts)

Issue:
Bug: Add space need to ignore filenames
Turn on the option "Space between Chinese Japanese or Korean and English or numbers"

```html
before
<img src="中文small.png" />

after
<img src="中文 small.png" />
```
Then the image file won't be found.

Pull request:
Fixed Space Being Added to HTML Attributes
Fixes #662 

Changes Made:
- Ignored html for adding spaces around Chinese characters
- Added a UT for the scenario in question

Patch:
diff --git a/src/rules/space-between-chinese-japanese-or-korean-and-english-or-numbers.ts b/src/rules/space-between-chinese-japanese-or-korean-and-english-or-numbers.ts
index f319e10..c4a339b 100644
--- a/src/rules/space-between-chinese-japanese-or-korean-and-english-or-numbers.ts
+++ b/src/rules/space-between-chinese-japanese-or-korean-and-english-or-numbers.ts
@@ -34,7 +34,7 @@ export default class SpaceBetweenChineseJapaneseOrKoreanAndEnglishOrNumbers exte
 
 
     return ignoreListOfTypes([IgnoreTypes.code, IgnoreTypes.inlineCode, IgnoreTypes.yaml, IgnoreTypes.image, IgnoreTypes.link,
-      IgnoreTypes.wikiLink, IgnoreTypes.tag, IgnoreTypes.math, IgnoreTypes.inlineMath], text, (text: string) => {
+      IgnoreTypes.wikiLink, IgnoreTypes.tag, IgnoreTypes.math, IgnoreTypes.inlineMath, IgnoreTypes.html], text, (text: string) => {
       let newText = ignoreListOfTypes([IgnoreTypes.italics, IgnoreTypes.bold], text, addSpaceAroundChineseJapaneseKoreanAndEnglish);
 
       newText = updateItalicsText(


Test patch:
diff --git a/__tests__/space-between-chinese-japanese-or-korean-and-english-or-numbers.test.ts b/__tests__/space-between-chinese-japanese-or-korean-and-english-or-numbers.test.ts
index b7559e1..10c8dc6 100644
--- a/__tests__/space-between-chinese-japanese-or-korean-and-english-or-numbers.test.ts
+++ b/__tests__/space-between-chinese-japanese-or-korean-and-english-or-numbers.test.ts
@@ -95,5 +95,15 @@ ruleTest({
         **[abs 接口](abs 接口.md)**
       `,
     },
+    { // accounts for https://github.com/platers/obsidian-linter/issues/662
+      testName: 'Make sure that html is ignored',
+      before: dedent`
+        <img src="中文small.png" />
+      `,
+      after: dedent`
+        <img src="中文small.png" />
+      `,
+    },
+
   ],
 });