grande.js
grande.js copied to clipboard
Headings not inline with Medium
Medium's toolbar contains buttons for adding H1
and H2
level headings. But the HTML output is H2
and H3
respectively at the dom level.
Grade.js insets H1
as H2
, and so forth...
This seems fine, what's the issue that you faced with the tags?
Sorry, I wrote that wrong. Grande.js inserts h1
(from the toolbar) as h1
(into the document), whereas Medium inserts h1
(from the toolbar) as h2
(into the document).
Grande.js' behaviour is not desirable because the h1
heading might be reserved for the document title, which may be entered as a separate field. You don't want a post to have multiple h1s, basically. Medium essentially reserves h1
to the post title...
No worries, I see your concern - definitely valid that we should only have one technical h1
on the page. Thanks for pointing this one out!