Giteabot
e194d89c74
Improve and fix markup code preview rendering ( #35777 ) ( #35787 )
...
Backport #35777 by @silverwind
1. Add the color on the link to the referenced file, which is the more
likely thing the user wants to click
2. Use monospace font on the SHA
3. Tweak text colors
4. Change SHA link to go to the commit instead of the repo root with
commit filter set
5. Added the repo name to the file link text
6. Fix broken line numbering rendering
The only major difference to GitHub is now the missing line numbers.
Before:
<img width="286" height="162" alt="Screenshot 2025-10-29 at 19 09 59"
src="https://github.com/user-attachments/assets/f16b4eec-caf2-4c31-a2b5-ae5f41747d4b "
/>
After:
<img width="378" height="157" alt="image"
src="https://github.com/user-attachments/assets/0c91dfd3-0910-4b2d-a43b-8c87cfbb933e "
/>
For comparison, GitHub rendering:
<img width="286" height="177" alt="image"
src="https://github.com/user-attachments/assets/8a9a07b7-9153-4415-9d7a-5685853e472a "
/>
Co-authored-by: silverwind <me@silverwind.io >
2025-10-30 09:06:44 +00:00
wxiaoguang
f114c388ff
Refactor wiki ( #34805 )
...
Remove unclear code
2025-06-22 18:53:33 +08:00
wxiaoguang
81adb01713
Improve img lazy loading ( #34804 )
...
Related #32051 and #13526
2025-06-21 14:53:22 +08:00
wxiaoguang
9ac536a904
Fix "stop time tracking button" on navbar ( #33084 )
...
Fix #33083
By the way (something I was working on):
1. relax color/background-color for more markup elements
2. fix a command line sentence error
2025-01-03 04:01:05 +08:00
wxiaoguang
633785a5f3
Refactor markup render system ( #32612 )
...
This PR removes (almost) all path tricks, and introduces "renderhelper"
package.
Now we can clearly see the rendering behaviors for comment/file/wiki,
more details are in "renderhelper" tests.
Fix #31411 , fix #18592 , fix #25632 and maybe more problems. (ps: fix
#32608 by the way)
2024-11-24 16:18:57 +08:00
wxiaoguang
8a20fba8eb
Refactor markup render system ( #32533 )
...
Remove unmaintainable sanitizer rules. No need to add special "class"
regexp rules anymore, use RenderInternal.SafeAttr instead, more details
(and examples) are in the tests
2024-11-18 13:25:42 +08:00
wxiaoguang
145e266987
Support quote selected comments to reply ( #32431 )
...
Many existing tests were quite hacky, these could be improved later.
<details>

</details>
2024-11-07 03:57:07 +00:00
wxiaoguang
a4275951ba
Split sanitizer functions and fine-tune some tests ( #31192 )
2024-05-31 13:26:01 +00:00