disable h1 prepend for sections too

This commit is contained in:
Guilhem Fauré 2023-05-24 16:56:17 +02:00
parent 780a7d8b6a
commit f67cddd92c

View File

@ -221,7 +221,7 @@ class Rubrique(SpipRubriques):
def body(self) -> str: def body(self) -> str:
body: str = "" body: str = ""
# Add the title as a Markdown h1 # Add the title as a Markdown h1
if len(self.titre) > 0: if len(self.titre) > 0 and config.prepend_h1:
body += "\n\n# " + self.titre body += "\n\n# " + self.titre
# If there is a text, add the text preceded by two line breaks # If there is a text, add the text preceded by two line breaks
if len(self.texte) > 0: if len(self.texte) > 0: