-
-
Notifications
You must be signed in to change notification settings - Fork 145
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 a multiline blockquote extension #359
Add a multiline blockquote extension #359
Conversation
I still need to add an extension flag (right now it's fully hooked in). And does it make sense make it a compile feature? @kivikakk what do you think, would this be something that could be incorporated? |
b5789b1
to
9992e51
Compare
Adds the ability to enclose multiple lines in a blockquote. Such as: >>> Paragraph one Paragraph two >>>
9992e51
to
c8c518d
Compare
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.
This looks awesome!
@digitalmoksha yes, I think we should definitely include this! I'd be inclined not to compile flag it, I think it's a handy option to have and there are increasingly Markdown dialects/input elements that support this syntax; no need to restrict it imo.
Let me know when you're done and I'll throw fuzzers at it for a while :)
Really, I wasn't aware of any. Do you have an example? |
The one that comes to mind for me immediately is Discord: entering IIRC one or both of Slack and Mattermost also recognise this syntax, and I've seen people actually try it out elsewhere where it isn't supported! |
FWIW, Slack for sure supports it. |
It looks Slack is the same as Discord, you can't turn off the block quote (at least I wasn't able to). You can't bracket it like a fenced code block. |
Yep, indeed! They don't share that aspect of it, but it's similar and intuitive enough (imo). |
I made the suggested changes and added the extension option I think it's ready for final review. |
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.
LGTM! Thank you so much, @digitalmoksha! ❤️
I'm going to run fuzzing on this for a few hours, and merge when done.
Thanks for merging @kivikakk 🙇 |
@kivikakk when you have time, would it be possible to cut a new release? |
Of course, will do so tonight!El 25 ene 2024, a la(s) 5:34, digitalMoksha ***@***.***> escribió:
@kivikakk when you have time, would it be possible to cut a new release?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
comrak 0.21.0 is now on crates.io! Thanks for your hard work, @digitalmoksha ❤️ |
Thank you @kivikakk! I've updated my dingus, it's working like a charm. https://gitlab-org.gitlab.io/ruby/gems/gitlab-glfm-markdown/ |
Adds the ability to enclose multiple lines in a blockquote. Such as:
This is part of the GitLab Flavored Markdown (GLFM) specification, https://docs.gitlab.com/ee/user/markdown.html#multiline-blockquote