Catpandoc Index / Catpandoc / Application
Auto-generated documentation for catpandoc.application module.
Show source in application.py:65
Parse args from the command line.
def cli() -> None: ...
Show source in application.py:43
Handle the args and output to the terminal.
args
argparse.Namespace - Args
def handle(args: argparse.Namespace) -> None: ...
Show source in application.py:16
def pandoc2ansi(file: str, width: int = 79) -> str: ...
Show source in application.py:39
def pandoc2plain(file: str, width: int = 79) -> str: ...
Show source in application.py:24
Strip ansi codes from a given string.
string
str - string to strip codes from
str
- plaintext, utf-8 string (safe for writing to files)
def stripAnsi(string: str) -> str: ...