-
-
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 support all 6 headers (title/section/subsections) in terminal #10455
Conversation
Suggestion to support all 6 headers (title/section/subsections) like most others e.g. github suggested output ``` Fast Fourier Transform ######################## Fast Fourier Transform ======================== Fast Fourier Transform –––––––––––––––––––––––– Fast Fourier Transform ************************ Fast Fourier Transform ~~~~~~~~~~~~~~~~~~~~~~~~ Fast Fourier Transform ------------------------ ```
seems that at the moment all Cheers |
-1 to 6 different characters, IMO the/any ordering is not intuitive... An example of a Markdown which doesn't "support" headera this high is Stack Overflow, where IIRC h3 bolds and h4+ is ignored, and tbh this seems reasonable to me in the terminal. I guess I'm unclear on the use case for h4+s being distinct in the terminal... ? Saying that, I agree the current I think part of the problem here is that it's unclear how documentation is going to be done in practice, at the moment there are at least the following conventions for sections in docstrings: cc #9853 and @MichaelHatherly |
@hayd
|
Could you give a real-life example README.md where bolding and indenting h4/h5/h6 the same (e.g. bold with a new line underneath / IMO this is unusual use case, and don't want to lose the simple (IMO) ordering of only 3 underline styles. Saying that, if we did want more underline styles,
But I'm not sure this is needed, for the usual case I think h4+ being the same is fine. |
The triple lines of equiv is nice, but I worry about using a character that's not going to be supported everywhere. This is likely to not render correctly on Windows, for example. Now, if we start shipping with a decent terminal emulator on Windows, that might change the balance. |
@hayd, I've got no particular attachment to using |
hi @hayd, Personally I think it is a rather nice idea to access Pkg information (at the moment @doc, LICENSE, README.md) within the REPL. Fast Fourier Transformwhatever... Fast Fourier Transformwhatever... Fast Fourier Transformwhatever... Currently it renders like this: which is not very distinct as @MichaelHatherly said above. In fact with the leading |
@peter1000 yep, definitely ugly, we should lose the |
In my view, if a text author wants bold he would have used it and would not have made a consious decision to use We just have different opinions which is fine. Of course we agree on one thing: the current situation is |
I had this half-composed message yesterday: I've went a bit off-topic / my two issues are distinct:
These are kinda related, since it's not clear what will be the most important / oft-used headers. For example, we wouldn't want something elaborate for h1s within docstrings if you use h1 for every section (even though that may be nice in an h1 from a README):
Note: 2. is #8966 / #8966 (comment): IMO there should be some simple convention(s), which are unambiguously parsable into a meta object i.e. be able to extract the sections... even if we don't implement the actual parsing/meta object yet. Otherwise everyone does random things and which can't all be parsed in the future. Also, a convention is needed for docstrings in Base. Also we could reduce some lines/code duplication here by doing:
|
If we are allowed \equiv (and \cdot) I put together an alternative pr #10481. |
@peter1000 Thanks for having a go at this one, even if it didn't go through in the end. |
that's just fine with me - will check it out... |
Suggestion to support all 6 headers (title/section/subsections) like most
others e.g.
github supports all 6 headers
Fast Fourier Transform
Fast Fourier Transform
Fast Fourier Transform
Fast Fourier Transform
Fast Fourier Transform
Fast Fourier Transform
Example code: