CodeParser#
- class council.utils.CodeParser[source]#
Bases:
object
Helper class for parsing and extracting code blocks from text.
Provides methods to parse text containing code blocks delimited by triple backticks. Code blocks can optionally specify a language identifier after the opening delimiter.
Example of a code block:
```python def hello(): print("Hello world") ```