-
Notifications
You must be signed in to change notification settings - Fork 481
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 heading level handling in docstring #2308
Comments
Yep, we should do this. I assume the issue is that we don't traverse into the AST when doing the |
I believe the rewriting happens here, if anyone wants to take a stab at PRing this: Documenter.jl/src/expander_pipeline.jl Lines 964 to 981 in 6052e5f
|
#1146 asks for proper headings in docstrings, so if we decide to fix this, we should probably also close that issue. |
About #1146 |
Consider docstring:
In REPL help, the format is as expected: "Pattern" is indented and a lower level heading as "Arguments"
When making the documentation with Documenter on the other hand, "Pattern" gets translated to <h2> while "Arguements" only becomes <strong>, not <h1>. Therefore it looks quite off.
Using <h1> for "Arguments" is obviously not a good solution either
=> Idea: translate all heading levels in docstrings to <strong> instead of <h_>
The text was updated successfully, but these errors were encountered: