chatgpt.cli package
Submodules
chatgpt.cli.custom_rich module
- class chatgpt.cli.custom_rich.CustomCodeBlock(lexer_name: str, theme: str)[source]
Bases:
CodeBlock
A code block with syntax highlighting.
- classmethod create(markdown: Markdown, node: Any) CodeBlock [source]
Factory to create markdown element,
- Parameters
markdown (Markdown) – The parent Markdown object.
node (Any) – A node from Pygments.
- Returns
A new markdown element
- Return type
MarkdownElement
- style_name = 'markdown.code_block'