Skip to content

Commit

Permalink
Tech: corrige l’indentation de l’expression régulière
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbgk authored and ronnix committed Apr 21, 2021
1 parent 0903478 commit f0f1da4
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,20 @@ def block_html(self, html):


class CSSMixin:
"""Possibilité d’ajouter une classe CSS sur une ligne de liste.
Par exemple :
* {.maClasse} item classique de la liste en markdown
"""

RE_CLASS = re.compile(
r"""^
(?P<before>.*?)
(?:\s*\{\.(?P<class>[\w\-]+?)\}\s*)
(?P<after>.*)
$
""",
(?P<before>.*?)
(?:\s*\{\.(?P<class>[\w\-]+?)\}\s*)
(?P<after>.*)
$
""",
re.MULTILINE | re.VERBOSE,
)

Expand Down

0 comments on commit f0f1da4

Please sign in to comment.