Skip to content

Enforce exactly one H1 in the notebook-uniformity hook#1642

Open
classiqdor wants to merge 1 commit into
mainfrom
update_notebook_convention__enforce_single_h1
Open

Enforce exactly one H1 in the notebook-uniformity hook#1642
classiqdor wants to merge 1 commit into
mainfrom
update_notebook_convention__enforce_single_h1

Conversation

@classiqdor

Copy link
Copy Markdown
Contributor

Add single_h1_title rule: the first H1 is the title; later H1 headings are
demoted to H2 (fence-aware, so a # inside a code block isn't touched). This
complements the existing opens_with_h1_title check (which only verified the
opener). Demote the two existing violators (advection winning submission,
WS_iQuHack final) so the corpus conforms.

Add single_h1_title rule: the first H1 is the title; later H1 headings are
demoted to H2 (fence-aware, so a # inside a code block isn't touched). This
complements the existing opens_with_h1_title check (which only verified the
opener). Demote the two existing violators (advection winning submission,
WS_iQuHack final) so the corpus conforms.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant