diff --git a/app/components/editable_champ/header_section_component.rb b/app/components/editable_champ/header_section_component.rb index 696f20110..31a10e7f5 100644 --- a/app/components/editable_champ/header_section_component.rb +++ b/app/components/editable_champ/header_section_component.rb @@ -4,7 +4,7 @@ class EditableChamp::HeaderSectionComponent < ApplicationComponent end def level - @champ.level + @champ.level + 1 # skip one heading level end def libelle @@ -20,6 +20,10 @@ class EditableChamp::HeaderSectionComponent < ApplicationComponent end def tag_for_depth - "h#{level + 1}" + if level <= 6 + "h#{level}" + else + "p" + end end end