- Add\Rework UI - Add Split Table and Listing - Add Support Customazeble schems
This commit is contained in:
@@ -2,6 +2,8 @@ import re
|
||||
|
||||
from marko.inline import Image as Image_
|
||||
|
||||
from .caption import strip_caption_flags
|
||||
|
||||
|
||||
class Image(Image_):
|
||||
override = True
|
||||
@@ -9,7 +11,11 @@ class Image(Image_):
|
||||
super().__init__(match)
|
||||
|
||||
self.unique_name = None
|
||||
self.with_listing = False
|
||||
self.landscape = False
|
||||
|
||||
if self.title and (m := re.match(r"\%(\w+)( (.+))?", self.title)):
|
||||
self.unique_name = m.group(1)
|
||||
self.title = (m.group(3) or "").strip() or None
|
||||
self.title, self.with_listing, self.landscape = strip_caption_flags(
|
||||
(m.group(3) or "").strip()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user