|
@ -6,7 +6,7 @@ from panflute import MetaValue |
|
|
from typing import Union, Callable |
|
|
from typing import Union, Callable |
|
|
|
|
|
|
|
|
from .whitespace import NBSP |
|
|
from .whitespace import NBSP |
|
|
from .elements import FQuoted |
|
|
from .elements import FQuoted, FileLink |
|
|
from .context import Group, InlineGroup, BlockGroup, Context |
|
|
from .context import Group, InlineGroup, BlockGroup, Context |
|
|
from .whitespace import Whitespace |
|
|
from .whitespace import Whitespace |
|
|
from .command import BlockCommand, InlineCommand, CodeCommand, Command |
|
|
from .command import BlockCommand, InlineCommand, CodeCommand, Command |
|
@ -88,6 +88,7 @@ class NOPProcessor: |
|
|
Underline: self.transform_Underline, |
|
|
Underline: self.transform_Underline, |
|
|
NBSP: self.transform_NBSP, |
|
|
NBSP: self.transform_NBSP, |
|
|
FQuoted: self.transform_FQuoted, |
|
|
FQuoted: self.transform_FQuoted, |
|
|
|
|
|
FileLink: self.transform_FileLink, |
|
|
|
|
|
|
|
|
InlineCommand: self.transform_InlineCommand, |
|
|
InlineCommand: self.transform_InlineCommand, |
|
|
BlockCommand: self.transform_BlockCommand, |
|
|
BlockCommand: self.transform_BlockCommand, |
|
@ -299,6 +300,10 @@ class NOPProcessor: |
|
|
e.content = self.transform(e.content) |
|
|
e.content = self.transform(e.content) |
|
|
return e |
|
|
return e |
|
|
|
|
|
|
|
|
|
|
|
def transform_FileLink(self, e: FileLink) -> FileLink: |
|
|
|
|
|
e.content = self.transform(e.content) |
|
|
|
|
|
return e |
|
|
|
|
|
|
|
|
def transform_Figure(self, e: Figure) -> Figure: |
|
|
def transform_Figure(self, e: Figure) -> Figure: |
|
|
e.content = self.transform(e.content) |
|
|
e.content = self.transform(e.content) |
|
|
e.caption = self.transform(e.caption) |
|
|
e.caption = self.transform(e.caption) |
|
|