diff options
author | Botond Hende <nettingman@gmail.com> | 2024-09-06 20:29:24 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-09-06 23:13:28 +0200 |
commit | decab05a85ea33eeffe75b6275678463277576b6 (patch) | |
tree | 48bce83a12720c7f7fe7b6c5a52147e7e96234be /modules/blogpost_processor.py | |
parent | 83e6ebe3cceeb05dee057fad2db65b97db00b4c4 (diff) |
added quote rendering with warko
Diffstat (limited to 'modules/blogpost_processor.py')
-rw-r--r-- | modules/blogpost_processor.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/blogpost_processor.py b/modules/blogpost_processor.py index b29d91c..a8833e2 100644 --- a/modules/blogpost_processor.py +++ b/modules/blogpost_processor.py @@ -13,6 +13,7 @@ from .warko.strikethrough import StrikeThrough from .warko.headinginjector import get_heading_injector from .warko.extendedimage import get_image_renderer, ExtendedImageElement from .warko.newtablink import get_new_tab_links +from .warko.quote import Quote from ..config import Config CONTENT_FILE_NAME = "content.md" @@ -30,7 +31,7 @@ INTRO_MAX_EXTRA_LENGTH = 100 posts_cache = [] -def get_posts_from_cache() -> list('Post'): +def get_posts_from_cache() -> list['Post']: if len(posts_cache) == 0: raise Exception("Getting posts list from cache while it is still empty.") @@ -44,6 +45,7 @@ class Post: , get_heading_injector("> ") , get_image_renderer(["blog.wazul.moe"]) , get_new_tab_links(["blog.wazul.moe"]) + , Quote ] ) |