-
Notifications
You must be signed in to change notification settings - Fork 628
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
Enable Comrak support for style alerts in Markdown #10429
Conversation
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
we need two test cases:
|
@kbdharun are you still working on this? |
Yes, thanks for the reminder, will sync the PR with the base branch and test out the changes as suggested. |
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Hi @Turbo87, I tried adding a test case but unfortunately it isn't functioning properly with the alerts extension, if possible can you assist fixing it. Thanks in advance. References: https://github.com/kivikakk/comrak/blob/main/src/tests/fixtures/alerts.md, https://github.com/kivikakk/comrak/blob/main/src/tests/fixtures/multiline_blockquote.md |
for the Rust test: I don't think the test is wrong, it just shows that the alert extension isn't working as intended. Most likely the issue is related to the for the JS test: you will probably have to adjust the assertions to make that test pass. |
feel free to reopen if you feel like picking this back up :) |
This PR enables
alerts
(for GitHub style alerts kivikakk/comrak#519) andmultiline_block_quotes
(for GitLab multiline blockquotes kivikakk/comrak#521) Comrak extensions that were added/modified in the recent release https://github.com/kivikakk/comrak/releases/tag/v0.34.0, to the Crates Markdown renderer.Related discussion: #8506
While I was able to build the frontend as well as backend via Docker, I have not tested the rendering with a sample crates package (due to my unfamiliarity with the codebase). Any help with testing this and adding test cases for style alerts would be appreciated.
Extension docs:
https://docs.rs/comrak/0.35.0/comrak/struct.ExtensionOptionsBuilder.html#method.alerts
https://docs.rs/comrak/0.35.0/comrak/struct.ExtensionOptionsBuilder.html#method.multiline_block_quotes