|
|
@ -6,7 +6,7 @@ from panflute import MetaValue |
|
|
|
from typing import Union, Callable |
|
|
|
|
|
|
|
from .whitespace import NBSP |
|
|
|
from .elements import FQuoted |
|
|
|
from .elements import FQuoted, Slanted |
|
|
|
from .context import Group, InlineGroup, BlockGroup, Context |
|
|
|
from .whitespace import Whitespace |
|
|
|
from .command import BlockCommand, InlineCommand, CodeCommand, Command |
|
|
@ -69,6 +69,7 @@ class NOPProcessor: |
|
|
|
Cite: self.transform_Cite, |
|
|
|
Code: self.transform_Code, |
|
|
|
Emph: self.transform_Emph, |
|
|
|
Slanted: self.transform_Slanted, |
|
|
|
Image: self.transform_Image, |
|
|
|
LineBreak: self.transform_LineBreak, |
|
|
|
Link: self.transform_Link, |
|
|
@ -263,6 +264,10 @@ class NOPProcessor: |
|
|
|
e.content = self.transform(e.content) |
|
|
|
return e |
|
|
|
|
|
|
|
def transform_Slanted(self, e: Slanted) -> Slanted: |
|
|
|
e.content = self.transform(e.content) |
|
|
|
return e |
|
|
|
|
|
|
|
def transform_Link(self, e: Link) -> Link: |
|
|
|
e.content = self.transform(e.content) |
|
|
|
return e |
|
|
|