MCPcopy
hub / github.com/DeppWang/youdaonote-pull / convert_code_func

Method convert_code_func

core/covert.py:49–56  ·  view source on GitHub ↗

代码块

(**kwargs)

Source from the content-addressed store, hash-verified

47
48 @staticmethod
49 def convert_code_func(**kwargs):
50 """代码块"""
51 language = XmlElementConvert.get_text_by_key(
52 list(kwargs.get("element")), "language"
53 )
54 return "```{language}\r\n{code}```".format(
55 language=language, code=kwargs.get("text")
56 )
57
58 @staticmethod
59 def convert_todo_func(**kwargs):

Callers

nothing calls this directly

Calls 1

get_text_by_keyMethod · 0.80

Tested by

no test coverage detected