{"action":"opened","issue":{"url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/634","repository_url":"https://api.github.com/repos/styleguidist/react-styleguidist","labels_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/634/labels{/name}","comments_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/634/comments","events_url":"https://api.github.com/repos/styleguidist/react-styleguidist/issues/634/events","html_url":"https://github.com/styleguidist/react-styleguidist/issues/634","id":264672838,"number":634,"title":"Down-level headings in markdown files","user":{"login":"cameron-martin","id":1467158,"avatar_url":"https://avatars0.githubusercontent.com/u/1467158?v=4","gravatar_id":"","url":"https://api.github.com/users/cameron-martin","html_url":"https://github.com/cameron-martin","followers_url":"https://api.github.com/users/cameron-martin/followers","following_url":"https://api.github.com/users/cameron-martin/following{/other_user}","gists_url":"https://api.github.com/users/cameron-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/cameron-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameron-martin/subscriptions","organizations_url":"https://api.github.com/users/cameron-martin/orgs","repos_url":"https://api.github.com/users/cameron-martin/repos","events_url":"https://api.github.com/users/cameron-martin/events{/privacy}","received_events_url":"https://api.github.com/users/cameron-martin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-11T17:34:02Z","updated_at":"2017-10-11T17:34:02Z","closed_at":null,"author_association":"NONE","body":"Currently when headings are rendered in markdown files, they are rendered as-is (i.e. an h1 in a markdown file gets rendered as an h1 in the styleguide). However, the sections titles also use headings, so you can get strange behaviour such as an h1 being rendered inside a section with an h3 title, when it should be an h4.\r\n\r\nA solution to this is to just start the headings in the markdown files at the appropriate size, but this gets tedious to update when moving sections around (i.e. moving a top-level section to a sub-section).\r\n\r\nIt would be nice if the headings in the markdown were automatically \"down-levelled\", I.e. h1 elements inside a markdown file inside a section with an h3 heading were converted to h4 elements."}}
{"actor":{"display_login":"cameron-martin"}}