Footnotes now supported in GitHub Markdown
github.blog
github.blog
And I don't actually think that's a bad thing, so long as it stops there. HTML has become much more than documents, so having a constrained subset dedicated to documents is helpful.
Everybody who grabbed onto Markdown and is forking it because they're realizing that it was a very simple tool to solve one man's blogging problem and ignored all the other more comprehensive LWMLs is reinventing HTML.
For example, see https://daringfireball.net/2005/07/footnotes.text
Markdown, on the other hand, has a syntax that is ever expanding. It's all exceptions to exceptions to exceptions (exceptions all the way down).
For example, what happens if in a markdown document talking about regular expressions you have this text: [^A-Za-z]. Will it be interpreted as a footnote? Or is it an exception? Who knows, only trial and error will tell.
In my experience, with decent editor assistance to help with boilerplate, closing html tags, etx. I enjoy writing simple docs more in html
HTML 1.0 (no CSS, no JS, no floats) is very similar in scope to Markdown. I wish every site that uses Markdown would allow me to write something like HTML 1.0 instead. It would be so much easier, at least for me.
With HTML, I know that anything inside angle brackets won't get shown, because that's a directive to the rendering engine to do something. Put another way, only <, >, and I guess & are special and need to be escaped if I want to use them. Everything else will show up as I've typed it.
With markdown, a future feature addition could actually change the layout or structure of an existing document, because arbitrary characters (and sequences of characters) mean particular things. Previously, [^1] was a hyperlink to somewhere else (assuming I put "[^1]: https://wherever.com" somewhere else on the page). Now it's a link to that "[^1]: https://whatever.com" text on the same page. This change may have broken existing documents.
HTML is ugly when left in its source format.
The best format I’ve found to author web pages, though, is definitely MDSvex [1], which is essentially markdown with built in syntax highlighting for code blocks, vanilla HTML if needed, and Svelte / Svelte components for any reactivity / reusable components if JS is needed. Stick some pug in the Svelte Component and I’ve got unlimited power in a beautiful, readable syntax with 0 boilerplate, all compiling to vanilla HTML and optionally hydrating JS. Love it!
Also, rST can’t even do bold italics.
https://github.com/bzg/org-mode/commit/40a149354c4e5992abac4...
Ease of use should be one of the core goals, then.
Maybe asciidoc3 har improved the situation.
Never needed bold italics. :)
That said, links and references are a nice thing to have done well.
Not even in W3C's rather underrepresented suggested usage (as distinguished from common practice):
The objective of this technique is to use the HTML5 aside element to indicate that it's content is tangentially related to the main article or a parent section. The aside element represents a section of a page that consists of content that could be considered separate from that content. Such sections are often represented as sidebars in printed typography.
https://www.w3.org/WAI/GL/wiki/Using_the_aside_element_to_in...
https://awkawk.github.io/using_aside_content.html
Dive Into HTML5 anaogises <aside> to sidebars:
The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography. The element can be used for typographical effects like pull quotes or sidebars, for advertising, for groups of nav elements, and for other content that is considered separate from the main content of the page.
However, ctrl+f footnote doesn't return anything. What's the current best practice for writing footnotes with semantic html? If I were to implement footnotes with <aside>, how would it look like?
https://html.spec.whatwg.org/multipage/semantics-other.html#...
It frankly boggles my mind that a markup language created by and for academics has neither footnotes nor formulae as first-class features.
To the extent that Markdown does implement a specific footnote syntax, it's actually ahead of HTML in that regard.
[1] http://karlwinegardner.blogspot.com/2011/02/how-to-create-fo...
Something like:
###|about What is all this about?
And #2 in wish list is built-in support for `<details>` - collapsible sections - quite useful in documentation.EDIT: Definite +1 for the stable headers id suggestion. I implemented something similar in a proof of concept app a while back, but it was a suffix rather than a prefix, in brackets, like so:
# About this project { #about }
It worked really well, and the syntax allowed for additional properties like css like class syntax. Thouh we referred to them as tags because they were used to tag sections, paragraphs etc., so we could do some interesting aggregation later on. ### Properties
+ #### innerHTML
Get/set inner HTML content
+ #### innerText
Get/set content as text
### Methods ~ Definition title
The definition data should be indented at the same level
as the title. This let's you nest definitions also:
~ Like this
Here's a nested definition.
We also allowed : instead of ~ but most people seemed to prefer the latter. We didn't collapse anything in rendering though, but it's not a bad idea. The resulting markup when rendered to HTML was actual definition lists (<dl>) though, not details, so that'd either have to be done by nesting details or css magic I suppose.## <a name="boiler-plate"></a>Removing more boiler plate
### <a id="about"></a>What is all this about?
So to use
<h3 id=about>What is all this about?</h3>
But what's the point of using MD then?EDIT: OJFord answers my question below.
P.S. Why am I forced to watch (and re-watch) an animated GIF when you could have simply shown the source and resulting rendered HTML in my browser?! Meanwhile, the example code they do provide is left completely without a rendered output. Must everything spoon feed video these days? Madness!
P.S.S why is "simple" colored cyan?
[1] https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/chan...
https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm....
https://github.com/github/cmark-gfm/pull/64
See this comment: https://github.com/github/cmark-gfm/pull/64#issuecomment-401...
Or is that GitLab?
* Note: Sadly, include is not supported on GH. https://github.com/github/markup/issues/1095
No, only markdown is “native” to the platform.
Is there a proper document editor (eg. Has live preview) that is the same as GitHub-flavored Markdown such that I can copy text into Confluence or Notion and have things ‘just work’? I would use that as my editor and just copy into other places for publish.
I hope it gets there. I like this feature. :-)
I find that I constrain myself to the bare minimum in .md because I'm not sure what is supported.
If github wants to actually support real markdown then footnotes are good, but maybe work on supporting anchors first. They're very important for readmes.