util.formatting package
Submodules
util.formatting.format_timedelta module
util.formatting.json_parsing module
- util.formatting.json_parsing.parse_json_from_markdown(markdown_text: str) dict [source]
Parse JSON from markdown text. Any newline characters inside JSON string values are replaced with “<br>” and trailing commas are removed to produce valid JSON.
- Parameters:
markdown_text (str) – Markdown text.
- Raises:
json.JSONDecodeError – If JSON parsing fails.