Re:A Go Custom Flutter Engine Embedder for Desktop
by christophilus on Friday January 18, 2019 @07:14AM
(#18938746)
It's done via embedded HTML, which GitHub flavored markdown supports. I didn't know about the HTML details element, though. Pretty handy!
<details>
<summary>Click to expand</summary>
<div>Hidden until expanded, no JS or CSS required!</div>
</details>
Re:A Go Custom Flutter Engine Embedder for Desktop
by Hixie on Friday January 18, 2019 @01:50PM
(#18941763)
If it makes you feel better, I _invented_ `<details>` and didn't realize you could do that in markdown...
Re:A Go Custom Flutter Engine Embedder for Desktop
by masklinn on Friday January 18, 2019 @07:20AM
(#18938777)
It also works in issue/PR descriptions and comments. As far as I'm concerned that's where it's most convenient as it lets you e.g. post big screenshots or graphical rendering of profiles (flamegraphs) without taking up screenfuls of space and bothering everybody.
Re:A Go Custom Flutter Engine Embedder for Desktop
by laumars on Friday January 18, 2019 @07:19AM
(#18938775)
The markdown in there looks like some horrible HTML / markdown hybrid. Yeah collapsing elements are cool if you’re viewing in a web browser but the point of markdown is that it’s supposed to look good in a plain text editor / terminal as it does when rendered and the raw version of that markdown file definitely isn’t.
Ultimately though I’m not going to complain that an open source developer has documented their free code in a way that differs from my own personal preferences. But before jumping on the bandwagon it’s worth thinking about whether you want your README to be readable as plain text as well.
Re:A Go Custom Flutter Engine Embedder for Desktop
by detaro on Friday January 18, 2019 @07:12AM
(#18938732)
You can use HTML in markdown, which is what was done here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/de...
Re:A Go Custom Flutter Engine Embedder for Desktop
by tilpner on Friday January 18, 2019 @07:12AM
(#18938733)
This also works for comments: https://github.com/dear-github/dear-github/issues/166#issuec...
Anyway, back on topic: this is interesting, has anyone used GLFW for Go? What if I don't have a C or C++ compiler, how does Go handle C / C++ dependencies? Do you need everything required to build those too? I usually try to stick to things Go can compile in native Go as much as possible so I'm not familiar with this.