Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Assume that docstring code with no lang is julia #55465

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

tecosaur
Copy link
Contributor

By making this assumption when parsing docstrings, we can remove the assumption that all no-lang Markdown code blocks are in fact Julia without compromising docstring highlighting.

@nsajko nsajko added stdlib:REPL Julia's REPL (Read Eval Print Loop) stdlib:markdown labels Aug 11, 2024
By making this assumption when parsing docstrings, we can remove the
assumption that all no-lang Markdown code blocks are in fact Julia
without compromising docstring highlighting.
@KristofferC
Copy link
Sponsor Member

👍, this seems better to me

@KristofferC
Copy link
Sponsor Member

KristofferC commented Aug 13, 2024

Although doing it like Documenter where only the first code block is assumed to be Julia might be even better. The doctests etc later typically have jldoctest on them.

@tecosaur
Copy link
Contributor Author

Personally "the default code language in Julia docstrings is Julia" makes sense to me, I'm not sure if it would be a good idea to restrict it to the first code block only or not?

I know code I've written there are instances where I've used indentation for Julia code multiple times, but I don't have a good sense off the top of my head of the general situation.

@KristofferC KristofferC added the status:merge me PR is reviewed. Merge when all tests are passing label Sep 17, 2024
@IanButterworth IanButterworth merged commit a73ba3b into JuliaLang:master Sep 19, 2024
8 checks passed
@giordano giordano removed the status:merge me PR is reviewed. Merge when all tests are passing label Sep 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
stdlib:markdown stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants