|
|
@ -15,15 +15,15 @@ from pygments.util import ClassNotFound |
|
|
|
|
|
|
|
from .whitespace import NBSP |
|
|
|
from .context import Group |
|
|
|
from .output_generator import Output_generator |
|
|
|
from .output_generator import OutputGenerator |
|
|
|
from .katex import KatexClient |
|
|
|
from .images import ImageProcessor |
|
|
|
from .util import inlinify |
|
|
|
|
|
|
|
class HTML_generator(Output_generator): |
|
|
|
def __init__(self, output_file, katex_client: KatexClient, image_processor:ImageProcessor, *args, **kwargs): |
|
|
|
self.katex_client = katex_client |
|
|
|
self.image_processor = image_processor |
|
|
|
class HTMLGenerator(OutputGenerator): |
|
|
|
def __init__(self, output_file, katexClient: KatexClient, imageProcessor: ImageProcessor, *args, **kwargs): |
|
|
|
self.katexClient = katexClient |
|
|
|
self.imageProcessor = imageProcessor |
|
|
|
super().__init__(output_file, *args, **kwargs) |
|
|
|
|
|
|
|
def generate(self, e: Union[Element, ListContainer]): |
|
|
|