- lambda x: ApplyDOMFilters('NoEdit,NoFooter', x),
- PandocTexifier('pandoc'),
+ lambda x: None,
+ lambda x: x,
+ 20,
+ ContentOnlyLayout(PandocTexifier('pandoc')),
- assert buf.getvalue() == b'''\\documentclass{article}
-\\usepackage[margin=20mm]{geometry}
+ assert re.match(br'''\\documentclass{article}
+(\\usepackage{[a-z]+}\n)+\\usepackage\[margin=20mm\]{geometry}
- lambda x: ApplyDOMFilters('NoEdit,NoFooter', x),
- PandocTexifier('pandoc'),
+ 20,
+ BesideIconLayout(PandocTexifier('pandoc')),
paperdoorknob.process(spec)
subprocess.run(['pdflatex', 'test.tex'],
stdin=subprocess.DEVNULL, check=True)
paperdoorknob.process(spec)
subprocess.run(['pdflatex', 'test.tex'],
stdin=subprocess.DEVNULL, check=True)
def fetcher(self) -> Fetcher:
with open('testdata/this-is-glowfic.html', 'rb') as f:
def fetcher(self) -> Fetcher:
with open('testdata/this-is-glowfic.html', 'rb') as f: