-
-
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
[Markdown] added doc string for @md_str string literal #52606
Conversation
Hello, world! This is my first PR to julia, some I'd be grateful for feedback. In particular:
|
There is a simultaneous PR for this issue at #52607 . We're currently figuring out which aspect of which PR to keep. |
54e0f67
to
c06aebd
Compare
4192b48
to
07a0ae7
Compare
aef4d9b
to
c6924f6
Compare
Okay, I believe this would be ready to merge @stevengj . This is my first Julia PR. Is there anything else from my side that I could help to merge this? |
c6924f6
to
4ace016
Compare
cd7b279
to
d3799cc
Compare
stdlib/Markdown/src/Markdown.jl
Outdated
@@ -40,6 +44,18 @@ function docexpr(source::LineNumberNode, mod::Module, s, flavor = :julia) | |||
:($doc_str($(mdexpr(s, flavor)), $(QuoteNode(source)), $mod)) | |||
end | |||
|
|||
""" | |||
macro md_str(s) |
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.
macro md_str(s) | |
@md_str -> Markdown.MD |
to match the convention used here https://docs.julialang.org/en/v1/base/strings/#Base.Docs.@html_str
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've copied the convention I found in Artifacts.@artifact_str
. If I find the time, I'll try to find all (string literal) macro docs, check for their conventions and file an issue if I find too many divergent styles.
d3799cc
to
0b21b52
Compare
Thanks :-) Should I squash the commits myself or is this handled during merging? Also, only merge after #52733 has been merged as |
Github will squash for you, so you needn't bother. |
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
CI failures seem unrelated. |
CI failures are unrelated (#52506 etc.) |
This PR addresses #51168 . I guess this PR wants to have the labels doc & markdown .