@@ -653,9 +653,9 @@ space</p>
653
653
Expected : `<p>space @mention-user<br/>
654
654
/just/a/path.bin<br/>
655
655
<a href="https://example.com/file.bin" rel="nofollow">https://example.com/file.bin</a><br/>
656
- <a href="/wiki/file.bin" rel="nofollow">local link</a><br/>
656
+ <a href="/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
657
657
<a href="https://example.com" rel="nofollow">remote link</a><br/>
658
- <a href="/wiki/file.bin" rel="nofollow">local link</a><br/>
658
+ <a href="/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
659
659
<a href="https://example.com" rel="nofollow">remote link</a><br/>
660
660
<a href="/wiki/raw/image.jpg" target="_blank" rel="nofollow noopener"><img src="/wiki/raw/image.jpg" alt="local image"/></a><br/>
661
661
<a href="/wiki/raw/path/file" target="_blank" rel="nofollow noopener"><img src="/wiki/raw/path/file" alt="local image"/></a><br/>
@@ -711,9 +711,9 @@ space</p>
711
711
Expected : `<p>space @mention-user<br/>
712
712
/just/a/path.bin<br/>
713
713
<a href="https://example.com/file.bin" rel="nofollow">https://example.com/file.bin</a><br/>
714
- <a href="https://gitea.io/wiki/file.bin" rel="nofollow">local link</a><br/>
714
+ <a href="https://gitea.io/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
715
715
<a href="https://example.com" rel="nofollow">remote link</a><br/>
716
- <a href="https://gitea.io/wiki/file.bin" rel="nofollow">local link</a><br/>
716
+ <a href="https://gitea.io/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
717
717
<a href="https://example.com" rel="nofollow">remote link</a><br/>
718
718
<a href="https://gitea.io/wiki/raw/image.jpg" target="_blank" rel="nofollow noopener"><img src="https://gitea.io/wiki/raw/image.jpg" alt="local image"/></a><br/>
719
719
<a href="https://gitea.io/wiki/raw/path/file" target="_blank" rel="nofollow noopener"><img src="https://gitea.io/wiki/raw/path/file" alt="local image"/></a><br/>
@@ -769,9 +769,9 @@ space</p>
769
769
Expected : `<p>space @mention-user<br/>
770
770
/just/a/path.bin<br/>
771
771
<a href="https://example.com/file.bin" rel="nofollow">https://example.com/file.bin</a><br/>
772
- <a href="/relative/path/wiki/file.bin" rel="nofollow">local link</a><br/>
772
+ <a href="/relative/path/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
773
773
<a href="https://example.com" rel="nofollow">remote link</a><br/>
774
- <a href="/relative/path/wiki/file.bin" rel="nofollow">local link</a><br/>
774
+ <a href="/relative/path/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
775
775
<a href="https://example.com" rel="nofollow">remote link</a><br/>
776
776
<a href="/relative/path/wiki/raw/image.jpg" target="_blank" rel="nofollow noopener"><img src="/relative/path/wiki/raw/image.jpg" alt="local image"/></a><br/>
777
777
<a href="/relative/path/wiki/raw/path/file" target="_blank" rel="nofollow noopener"><img src="/relative/path/wiki/raw/path/file" alt="local image"/></a><br/>
@@ -829,9 +829,9 @@ space</p>
829
829
Expected : `<p>space @mention-user<br/>
830
830
/just/a/path.bin<br/>
831
831
<a href="https://example.com/file.bin" rel="nofollow">https://example.com/file.bin</a><br/>
832
- <a href="/relative/path/wiki/file.bin" rel="nofollow">local link</a><br/>
832
+ <a href="/relative/path/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
833
833
<a href="https://example.com" rel="nofollow">remote link</a><br/>
834
- <a href="/relative/path/wiki/file.bin" rel="nofollow">local link</a><br/>
834
+ <a href="/relative/path/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
835
835
<a href="https://example.com" rel="nofollow">remote link</a><br/>
836
836
<a href="/relative/path/wiki/raw/image.jpg" target="_blank" rel="nofollow noopener"><img src="/relative/path/wiki/raw/image.jpg" alt="local image"/></a><br/>
837
837
<a href="/relative/path/wiki/raw/path/file" target="_blank" rel="nofollow noopener"><img src="/relative/path/wiki/raw/path/file" alt="local image"/></a><br/>
@@ -889,9 +889,9 @@ space</p>
889
889
Expected : `<p>space @mention-user<br/>
890
890
/just/a/path.bin<br/>
891
891
<a href="https://example.com/file.bin" rel="nofollow">https://example.com/file.bin</a><br/>
892
- <a href="/relative/path/wiki/file.bin" rel="nofollow">local link</a><br/>
892
+ <a href="/relative/path/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
893
893
<a href="https://example.com" rel="nofollow">remote link</a><br/>
894
- <a href="/relative/path/wiki/file.bin" rel="nofollow">local link</a><br/>
894
+ <a href="/relative/path/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
895
895
<a href="https://example.com" rel="nofollow">remote link</a><br/>
896
896
<a href="/relative/path/wiki/raw/image.jpg" target="_blank" rel="nofollow noopener"><img src="/relative/path/wiki/raw/image.jpg" alt="local image"/></a><br/>
897
897
<a href="/relative/path/wiki/raw/path/file" target="_blank" rel="nofollow noopener"><img src="/relative/path/wiki/raw/path/file" alt="local image"/></a><br/>
@@ -951,9 +951,9 @@ space</p>
951
951
Expected : `<p>space @mention-user<br/>
952
952
/just/a/path.bin<br/>
953
953
<a href="https://example.com/file.bin" rel="nofollow">https://example.com/file.bin</a><br/>
954
- <a href="/relative/path/wiki/file.bin" rel="nofollow">local link</a><br/>
954
+ <a href="/relative/path/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
955
955
<a href="https://example.com" rel="nofollow">remote link</a><br/>
956
- <a href="/relative/path/wiki/file.bin" rel="nofollow">local link</a><br/>
956
+ <a href="/relative/path/wiki/raw/ file.bin" rel="nofollow">local link</a><br/>
957
957
<a href="https://example.com" rel="nofollow">remote link</a><br/>
958
958
<a href="/relative/path/wiki/raw/image.jpg" target="_blank" rel="nofollow noopener"><img src="/relative/path/wiki/raw/image.jpg" alt="local image"/></a><br/>
959
959
<a href="/relative/path/wiki/raw/path/file" target="_blank" rel="nofollow noopener"><img src="/relative/path/wiki/raw/path/file" alt="local image"/></a><br/>
0 commit comments