grande.js icon indicating copy to clipboard operation
grande.js copied to clipboard

Headings not inline with Medium

Open abitdodgy opened this issue 11 years ago • 3 comments

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...

abitdodgy avatar Dec 04 '13 17:12 abitdodgy

This seems fine, what's the issue that you faced with the tags?

mduvall avatar Dec 05 '13 05:12 mduvall

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...

abitdodgy avatar Dec 05 '13 06:12 abitdodgy

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!

mduvall avatar Dec 05 '13 06:12 mduvall