From f67cddd92cf26d10e2780b4ef97bdd77b1914777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Wed, 24 May 2023 16:56:17 +0200 Subject: [PATCH] disable h1 prepend for sections too --- spip2md/spipobjects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spip2md/spipobjects.py b/spip2md/spipobjects.py index ec8d848..b73e528 100644 --- a/spip2md/spipobjects.py +++ b/spip2md/spipobjects.py @@ -221,7 +221,7 @@ class Rubrique(SpipRubriques): def body(self) -> str: body: str = "" # 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 # If there is a text, add the text preceded by two line breaks if len(self.texte) > 0: