{"record":{"id":"efc9fdd9d85b2686","repo":"unclecode/crawl4ai","slug":"the-markdown-v2-attribute-is-deprecated-and-has","errorCode":null,"errorMessage":"The 'markdown_v2' attribute is deprecated and has been removed. Please use 'markdown' instead, which now returns a MarkdownGenerationResult, with\n            following properties:\n            - raw_markdown: The raw markdown string\n            - markdown_with_citations: The markdown string with citations\n            - references_markdown: The markdown string with references\n            - fit_markdown: The markdown string with fit text\n            ","messagePattern":"The 'markdown_v2' attribute is deprecated and has been removed\\. Please use 'markdown' instead, which now returns a MarkdownGenerationResult, with\n            following properties:\n            - raw_markdown: The raw markdown string\n            - markdown_with_citations: The markdown string with citations\n            - references_markdown: The markdown string with references\n            - fit_markdown: The markdown string with fit text\n            ","errorType":"exception","errorClass":"AttributeError","httpStatus":null,"severity":"error","filePath":"crawl4ai/models.py","lineNumber":216,"sourceCode":"            return None\n        return StringCompatibleMarkdown(self._markdown)\n    \n    @markdown.setter\n    def markdown(self, value):\n        \"\"\"\n        Setter for the markdown property.\n        \"\"\"\n        self._markdown = value\n    \n    @property\n    def markdown_v2(self):\n        \"\"\"\n        Deprecated property that raises an AttributeError when accessed.\n\n        This property exists to inform users that 'markdown_v2' has been\n        deprecated and they should use 'markdown' instead.\n        \"\"\"\n        raise AttributeError(\n            \"The 'markdown_v2' attribute is deprecated and has been removed. \"\n            \"\"\"Please use 'markdown' instead, which now returns a MarkdownGenerationResult, with\n            following properties:\n            - raw_markdown: The raw markdown string\n            - markdown_with_citations: The markdown string with citations\n            - references_markdown: The markdown string with references\n            - fit_markdown: The markdown string with fit text\n            \"\"\"\n        )\n    \n    @property\n    def fit_markdown(self):\n        \"\"\"\n        Deprecated property that raises an AttributeError when accessed.\n        \"\"\"\n        raise AttributeError(\n            \"The 'fit_markdown' attribute is deprecated and has been removed. \"\n            \"Please use 'markdown.fit_markdown' instead.\"","sourceCodeStart":198,"sourceCodeEnd":234,"githubUrl":"https://github.com/unclecode/crawl4ai/blob/7e801521428ee12509994d39151006f64055ebe3/crawl4ai/models.py#L198-L234","documentation":"Error \"The 'markdown_v2' attribute is deprecated and has been removed. Please use 'markdown' instead, which now returns a MarkdownGenerationResult, with\n            following properties:\n            - raw_markdown: The raw markdown string\n            - markdown_with_citations: The markdown string with citations\n            - references_markdown: The markdown string with references\n            - fit_markdown: The markdown string with fit text\n            \" thrown in unclecode/crawl4ai.","triggerScenarios":"Thrown at crawl4ai/models.py:216 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Access result.markdown instead of result.markdown_v2; use its properties such as raw_markdown or fit_markdown.","Update code that consumed markdown_v2 to the MarkdownGenerationResult API."],"exampleFix":"md = result.markdown.raw_markdown","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7e801521428ee12509994d39151006f64055ebe3","analyzedAt":"2026-08-14T20:46:20.673Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}