-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Add support for GitHub alert blocks #776
Conversation
@MihaZupan I added you as a reviewer. First time in years that I haven't implemented an extension to markdig 😅 |
Pull Request Test Coverage Report for Build 8276766130Details
💛 - Coveralls |
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.
Left a couple notes, but this looks good to me.
It feels a bit odd that we're hardcoding SVGs, but I don't know of a good alternative. Users can customize the logic themselves anyway.
Hi Alexandre, I was trying your code and I found a situation where the For this example, I added a code block inside the alert:
This is the result on GitHub markdown: Note Highlights information that users should take into account, even when skimming. var test = "I can also add code to panels
Although, it will never be rendered, since is not parsed as an The same goes to if I want to add a nested quote block on the alert:
Expected result: Note Highlights information that users should take into account, even when skimming.
If you need more info regarding this, I'm available to help. |
Thanks, good catch, I have a fix. I mistakenly forgot that inline parser happens after all blocks have been parsed. |
Co-authored-by: Miha Zupan <[email protected]>
Co-authored-by: Miha Zupan <[email protected]>
Thanks all for the review! |
Hi @xoofx I was trying the new version and it seems that the paragraphs within the Markdown example:
Expected: Note Highlights information that users should take into account, even when skimming. Testing rendering for multiple lines
Other line
Final line of alert HTML rendered result:
Do you want me to open an issue with this info? |
Yes please. |
Fixes #774
This extension does not support roundtrip.