-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restructure markup & markdown to prepare for multiple markup language… #2411
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, otherwise LGTM
modules/markup/html.go
Outdated
|
||
var ( | ||
// NOTE: All below regex matching do not perform any extra validation. | ||
// Thus a link is produced even if the user does not exist, the issue does not exist, the commit does not exist, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even if the linked entity does not exist
would suffice
modules/markup/html.go
Outdated
var ( | ||
// NOTE: All below regex matching do not perform any extra validation. | ||
// Thus a link is produced even if the user does not exist, the issue does not exist, the commit does not exist, etc. | ||
// While fast, this is also incorrect and lead to false positives. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should document this somewhere else than as a code comment. Or add a TODO: fix invalid linking issue
or similar.
One thought is having a markdown page in our docs to point our differences in markdown rendering between Gitea, Github, etc. WDYT?
Tests seems to fail |
@lafriks Yes, I know. I will fix it later. |
fbc8188
to
8a1f5c4
Compare
8a1f5c4
to
34e3942
Compare
Codecov Report
@@ Coverage Diff @@
## master #2411 +/- ##
==========================================
- Coverage 27.59% 26.86% -0.73%
==========================================
Files 83 84 +1
Lines 16928 16936 +8
==========================================
- Hits 4671 4550 -121
- Misses 11581 11712 +131
+ Partials 676 674 -2
Continue to review full report at Codecov.
|
@bkcsoft done. Since this is a refactor PR, I will not change a lot but splitting codes into |
LGTM |
@bkcsoft your LG-TM did not count as it is in review comments |
LGTM |
As title.