mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
fix: Restore the all_fences
definition from the base_coder
module
This commit is contained in:
parent
97c6002690
commit
a16ee761a7
1 changed files with 1 additions and 16 deletions
|
@ -4,24 +4,9 @@ import json
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# from aider.coders.base_coder import all_fences
|
from aider.coders.base_coder import all_fences
|
||||||
from aider.coders.editblock_coder import find_original_update_blocks
|
from aider.coders.editblock_coder import find_original_update_blocks
|
||||||
|
|
||||||
|
|
||||||
def wrap_fence(name):
|
|
||||||
return f"<{name}>", f"</{name}>"
|
|
||||||
|
|
||||||
|
|
||||||
all_fences = [
|
|
||||||
("``" + "`", "``" + "`"),
|
|
||||||
wrap_fence("source"),
|
|
||||||
wrap_fence("code"),
|
|
||||||
wrap_fence("pre"),
|
|
||||||
wrap_fence("codeblock"),
|
|
||||||
wrap_fence("sourcecode"),
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def process_markdown(filename):
|
def process_markdown(filename):
|
||||||
try:
|
try:
|
||||||
with open(filename, "r") as file:
|
with open(filename, "r") as file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue