omd2tex.tools.error_catcher#
Classes
|
|
|
- class omd2tex.tools.error_catcher.ConsoleColors[source]#
Bases:
object- RED = '\x1b[91m'#
- GREEN = '\x1b[92m'#
- YELLOW = '\x1b[93m'#
- BLUE = '\x1b[94m'#
- MAGENTA = '\x1b[95m'#
- CYAN = '\x1b[96m'#
- BOLD = '\x1b[1m'#
- UNDERLINE = '\x1b[4m'#
- END = '\x1b[0m'#
- class omd2tex.tools.error_catcher.ObjectImage(md_object, filename: str = '', source_str: str = '')[source]#
Bases:
object
- class omd2tex.tools.error_catcher.ErrorCompileCatcher(md_object: Document | File | MarkdownParser | List[Any])[source]#
Bases:
object- analyze(batch: int | None = None, total_errors: int = 1, rmdir: bool = True, print_analyzing: bool = True) List[ObjectImage][source]#
Analyze provided objects by compiling them and collecting errors.
- Parameters:
batch – Optional batch size for grouped compilation.
total_errors – Maximum errors to gather before early exit.
rmdir – Whether to delete the temporary export directory afterward.
print_analyzing – Toggle for progress output to stdout.
- Returns:
List of ObjectImage instances that failed compilation; empty list if none.
- Raises:
None explicitly; subprocess errors may propagate. –
- Side Effects:
Alters global error catcher flag, writes temporary files, and prints diagnostics.