Add tikz and circuitikz to pipeline
This commit is contained in:
parent
7deef247f0
commit
4bee54740b
|
|
@ -21,6 +21,7 @@ from .pandoc import Pandoc, Div, Span, Header, Attr, Plain, PString, Inline, Ima
|
||||||
|
|
||||||
from .admonition import blockquote_filter, create_warning, create_information, Theorem, Proof
|
from .admonition import blockquote_filter, create_warning, create_information, Theorem, Proof
|
||||||
from .penrose import Penrose
|
from .penrose import Penrose
|
||||||
|
from .tikz import Tikz, Circuitikz
|
||||||
from .image import ImageFilter
|
from .image import ImageFilter
|
||||||
|
|
||||||
def parse_title(content):
|
def parse_title(content):
|
||||||
|
|
@ -236,6 +237,12 @@ async def main(base_path):
|
||||||
|
|
||||||
codeblock.AddCallback("penrose", pen)
|
codeblock.AddCallback("penrose", pen)
|
||||||
|
|
||||||
|
t = Tikz(base_path)
|
||||||
|
c = Circuitikz(base_path)
|
||||||
|
|
||||||
|
codeblock.AddCallback("tikz", t)
|
||||||
|
codeblock.AddCallback("circuitikz", c)
|
||||||
|
|
||||||
pipeline.AddCallback('BlockQuote', blockquote, replace=True)
|
pipeline.AddCallback('BlockQuote', blockquote, replace=True)
|
||||||
pipeline.AddCallback('CodeBlock', codeblock, replace=True)
|
pipeline.AddCallback('CodeBlock', codeblock, replace=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user