Closed danielfdickinson closed 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
For what it's worth here are some articles on the status of outlines (sections) and headings:
Computer says no to the HTML5 outline A decade + a year of heading backwards
Basically, it's a mess of spec that was never implemented and never updated to reflect implementation.
I can confirm this HTML validation warning using this short example based on Hugo: test page | HTML validator page
https://github.com/yuin/goldmark/blob/829d874034a5048e1a5c6354dcd8b40e1e41c3a2/extension/footnote.go#L579
causes
| 175 | \ \
| Section lacks heading. Consider using “h2”-“h6” elements to add identifying headings to all sections. |
in W3C http://validator.w3.org/unicorn
There does not appear to be a way to configure the tag to use (e.g.) 'div' when using HTML5. I'm probably missing something, but I don't see a way to override this without changing
footnote.go
source file.I do note that in the referenced https://michelf.ca/projects/php-markdown/extra/#footnotes that the example output given is
which uses a div (but also looks like the XHTML version).