From a0d66fb2e5cedc0524199996d107ce5ce80bce6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Faur=C3=A9?= Date: Tue, 25 Apr 2023 09:52:45 +0200 Subject: [PATCH] add lark to build a parser --- requirements.txt | 2 +- spip2md/content.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index d3c21d7..3259859 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pymysql peewee +lark python-slugify[unidecode] pyyaml diff --git a/spip2md/content.py b/spip2md/content.py index 71b1fe8..662ee5f 100644 --- a/spip2md/content.py +++ b/spip2md/content.py @@ -1,4 +1,5 @@ -import re +from lark import Lark + class content: def __init__(self, content):