|
|
@ -6,7 +6,7 @@ from panflute import MetaValue |
|
|
|
from typing import Union, Callable |
|
|
|
|
|
|
|
from .whitespace import NBSP |
|
|
|
from .elements import FQuoted, Slanted |
|
|
|
from .elements import FQuoted, Slanted, FLink |
|
|
|
from .context import Group, InlineGroup, BlockGroup, Context |
|
|
|
from .whitespace import Whitespace |
|
|
|
from .command import BlockCommand, InlineCommand, CodeCommand, Command |
|
|
@ -89,6 +89,7 @@ class NOPProcessor: |
|
|
|
Underline: self.transform_Underline, |
|
|
|
NBSP: self.transform_NBSP, |
|
|
|
FQuoted: self.transform_FQuoted, |
|
|
|
FLink: self.transform_FLink, |
|
|
|
|
|
|
|
InlineCommand: self.transform_InlineCommand, |
|
|
|
BlockCommand: self.transform_BlockCommand, |
|
|
@ -304,6 +305,9 @@ class NOPProcessor: |
|
|
|
e.content = self.transform(e.content) |
|
|
|
return e |
|
|
|
|
|
|
|
def transform_FLink(self, e: FLink) -> FLink: |
|
|
|
return self.transform_Link(e) |
|
|
|
|
|
|
|
def transform_Figure(self, e: Figure) -> Figure: |
|
|
|
e.content = self.transform(e.content) |
|
|
|
e.caption = self.transform(e.caption) |
|
|
|