add some documentations for func in some files

This commit is contained in:
swrneko
2025-09-10 21:25:10 +03:00
parent 26d2d19329
commit 4d4b23177b
2 changed files with 14 additions and 2 deletions

View File

@@ -6,6 +6,13 @@ from markdown_pdf import Section
class ConvertMdToPdf:
# Конвертирует md в pdf
def convertLatexToText(self, text:str):
'''
Функция для конвертации LaTeX в текст;
Args:
:param text: текст содержащий LaTeX.
'''
# Обрабатываем только математические выражения
text = re.sub(
r'\$\$(.*?)\$\$|\$(.*?)\$',