-
-
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
RFC implement h4-6 in terminal markdown #10481
Conversation
|
@tkelman hmmm, I think it's emdash (these were previously the h2 and h3!) |
@tkelman Ah it wasn't emdash, it was the character before (8211), perhaps it should be emdash! How do these look on Windows:
|
|
Yep, 8211 and 8212 are the same for me too (I was just hoping they were different for you, and that might have corrected your problem). I think that rules out simeq. Is requiring a "good" font that distinguishes h3 (emdash) and h4 (regular dash) a problem? |
rebased over merge conflict. Just to summarize where we're at: Before (in master): if you have a bad font, h2 and h3 may be indistinguishable. cc @StefanKarpinski (who commented about this in the other PR) IMO if you have a bad font some things aren't going to display at all (e.g. |
@one-more-minute bump! (last one) |
RFC implement h4-6 in terminal markdown
Alright, looking forward to seeing your other changes! FWIW, I have a couple of freer weeks coming up, so I should be able to review things a bit more quickly then. |
awesome, thanks! |
just a question: is At least I can not see any difference.. except extra indentation - but all togehter very nice indeed |
@peter1000 it's spaced, bold and newline, not sure I'm fully happy with that (but kinda ran out of characters which make sense!... a full-width = as h2 would have perfectly made this up to 6, unfortunately it doesn't exist). I thinking seeing this in some real world examples will confirm whether it makes sense. Thanks for driving this change, is certainly a big improvement from before. |
I think there is one to many new line for h6: I know it fits the underlines of the others but it looks bit strange (at least to me). I think the indentation and the Bold would be good enough. (but this is just my opinon)
|
I agree, one new line is better for h6 (I was being lazy not implementing it, I have a one line fix: changing this line to (The spaced thing is indeed about fonts, these look fine on monospaced fonts, everyone should be using a monospaced font! :) )
|
I think you might want to merge your one line fix: changing this line to char != ' ' && println(...). Anyway looks great so much better than before. |
@peter1000 including that as a commit in #10626. |
Change underlines for h1 to use \equiv
This competes against #10455 and changes the behaviour to (these are bold in the terminal as before):
My objective was to make these obviously ordered. I'd toyed with throwing ∼ and ≃ into the mix but IMO the hierarchy was actually made less clear... but perhaps there are better character(s) to use here?
Note: \cdot isn't quite monospaced in chrome (whatever font github uses in code blocks), but is for me in mac terminal (perhaps this differs from font-to-font?). I'm not sure what the situation is for windows @tkelman (or if this char is supported??)
cc @one-more-minute @peter1000