Add support to add images to footnote

This commit is contained in:
2024-03-11 17:25:15 +08:00
parent 0886dc64c8
commit 4d034a92a4
3 changed files with 35 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ class Config:
self._data['export_nodownload'] = True
self._data['img_cache_dir'] = 'img_cache'
self._data['page_size'] = 10
self._data['image_type'] = 'inline'
self.save()
def add_args(self, args: Namespace):
@@ -103,6 +104,10 @@ class Config:
def img_cache_dir(self):
return self.get_arg('img_cache_dir', 'img_cache')
@cached_property
def image_type(self):
return self.get_arg('image_type', 'inline')
@cached_property
def key(self):
return self.get_arg('key', None)