News for hackers. Stuff that matters.
Re:GitHub Collapsible Markdown by chadlavi on Thursday March 05, 2020 @11:45AM (#22495219)
... you mean embedded HTML in a markdown file? that's nothing new.
Re:GitHub Collapsible Markdown by Vinnl on Thursday March 05, 2020 @01:48PM (#22496672)
Here's the MDN page some of the sibling comments might want to see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/de...
Re:GitHub Collapsible Markdown by remi on Thursday March 05, 2020 @11:50AM (#22495294)
The “new” thing (if you didn’t know it before) is that GitHub applies a collapse/expand behavior to <details> elements.
Re:GitHub Collapsible Markdown by cfv on Thursday March 05, 2020 @11:55AM (#22495362)
This is an actual HTML tag, not a github thing

https://jsbin.com/timafew/edit?html,output

Re:GitHub Collapsible Markdown by torgoguys on Thursday March 05, 2020 @11:54AM (#22495343)
Isn't that the default behavior of <details> in html documents? Am I missing something?
Re:GitHub Collapsible Markdown by chadlavi on Thursday March 05, 2020 @11:57AM (#22495389)
^ this is what I mean, yeah. Isn't that the expected behavior?
Re:GitHub Collapsible Markdown by redbergy on Thursday March 05, 2020 @11:51AM (#22495310)
Your comment is accurate but I think its the fact that GitHub styles it in that way. I do wish it was possible to use markdown-types of elements in this way so that it could fallback on non-GitHub rendered web pages, or still look good in a text editor vs. HTML tags all over the place.

Maybe something like

^ Header

^^^

Collapsed

^^^

Similar to code blocks with the ``` syntax. I dunno.

Re:GitHub Collapsible Markdown by oefrha on Thursday March 05, 2020 @11:58AM (#22495401)
> its the fact that GitHub styles it in that way

GitHub hardly styles it at all. It applies a margin-top on top of what normalize.css does. It's 99% your browser's default style sheet at work.

Re:GitHub Collapsible Markdown by recursive on Thursday March 05, 2020 @12:29PM (#22495764)
First we couldn't tell the difference between git and github. Now we can't tell the difference between browsers and github.