Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main(doc=None):
"""
Main function called by the script.
Arguments
---------
doc:
The pandoc document
Returns
-------
The modified pandoc document
"""
return run_filter(admonition, prepare=prepare, finalize=finalize, doc=doc)
def main(doc=None):
return pf.run_filter(action, doc=doc)
def main(doc=None):
return pf.run_filter(action, doc=doc)
def main(doc=None):
"""
Fenced code block with class table will be parsed using
panflute.yaml_filter with the fuction codeblock_to_table above.
"""
return panflute.run_filter(
panflute.yaml_filter,
tag='table',
function=codeblock_to_table,
strict_yaml=True,
doc=doc
)
def main(doc=None):
if len(sys.argv) > 1:
if sys.argv[1] == '--help' or sys.argv[1] == '-h':
print(_help)
return None
return pf.run_filter(action, doc=doc)
def main(doc=None):
return pf.run_filter(action, doc=doc)
def main(doc=None):
sugartex.ready()
return pf.run_filter(action, doc=doc)
def main(doc=None):
"""
Fenced code block with class table will be parsed using
panflute.yaml_filter with the fuction convert2table above.
"""
return panflute.run_filter(
panflute.yaml_filter,
tag='table',
function=convert2table,
strict_yaml=True,
doc=doc
)