mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
refactor: Replace make_elements() with class var in NoInsetMarkdown
This commit is contained in:
parent
76eee60ad5
commit
f89dabbd0a
1 changed files with 5 additions and 6 deletions
|
@ -60,12 +60,11 @@ class NoInsetCodeBlock(CodeBlock):
|
|||
class NoInsetMarkdown(Markdown):
|
||||
"""Markdown with code blocks that have no padding."""
|
||||
|
||||
@classmethod
|
||||
def make_elements(cls):
|
||||
elements = super().make_elements()
|
||||
elements["fence"] = NoInsetCodeBlock
|
||||
elements["code_block"] = NoInsetCodeBlock
|
||||
return elements
|
||||
elements = {
|
||||
**Markdown.elements,
|
||||
"fence": NoInsetCodeBlock,
|
||||
"code_block": NoInsetCodeBlock,
|
||||
}
|
||||
|
||||
|
||||
class MarkdownStream:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue