-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Handle AsciiDoc better, reuse HTML pipeline filters (fixes #9263) #9288
Conversation
|
||
DEFAULT_ADOC_ATTRS = [ | ||
'showtitle', 'idprefix=user-content-', 'idseparator=-', 'env=github', | ||
'env-github', 'env=gitlab', 'env-gitlab', |
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.
The env=github
and env-github
attributes should be removed. We should only use env=gitlab
and env-gitlab
attributes.
Overall it looks good to me! I didn't run it, but I reviewed the code. |
+1000 Let's get out in front of GitHub! |
@mojavelinux I’ve implemented your suggestions and updated the PR. Thanks! |
717d364
to
21be32e
Compare
Handle AsciiDoc better, reuse HTML pipeline filters (fixes #9263)
@tsigo can you take a look and merge if ok? |
@randx Can you add him as a collaborator to the GitHub repo? He does not have rights right now. |
@Razer6 thank you. I invited him |
@jirutka Nice work! |
@tsigo can you take a look and merge if ok? |
@@ -67,6 +67,8 @@ v 7.11.0 (unreleased) | |||
- Spin spinner icon next to "Checking for CI status..." on MR page. | |||
- Fix reference links in dashboard activity and ATOM feeds. | |||
- Ensure that the first added admin performs repository imports | |||
- Update Asciidoctor gem to version 1.5.2. (Jakub Jirutka) |
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.
I don't think this needs a changelog entry.
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.
Why do you think so? It’s an important change for users that uses AsciiDoc in GitLab.
Will merge after |
👍 |
@tsigo Method |
Improve AsciiDoc rendering See #9288
This PR basically makes AsciiDoc a “first-class citizen” in GitLab, so we can reuse some HTML pipeline filters etc. The main reason why I’ve done this is to use RelativeLinkFilter (implemented in #9276) for AsciiDoc, and so fix #9263.
Since we don’t need
github-markup
for AsciiDoc anymore, I’ve updated the Asciidoctor gem to the latest version. The current used version (0.1.4) is ancient./cc @tsigo @randx @mojavelinux