fix markdown file generation

This commit is contained in:
Sina Atalay 2024-02-24 20:56:03 +01:00
parent 957628196b
commit b816971592
1 changed files with 4 additions and 3 deletions

View File

@ -132,11 +132,12 @@ class LaTeXFile(TemplatedFile):
data_model: dm.RenderCVDataModel, data_model: dm.RenderCVDataModel,
environment: jinja2.Environment, environment: jinja2.Environment,
): ):
latexfile_data_model = copy.deepcopy(data_model)
transformed_sections = transform_markdown_sections_to_latex_sections( transformed_sections = transform_markdown_sections_to_latex_sections(
copy.deepcopy(data_model.cv.sections_input) latexfile_data_model.cv.sections_input
) )
data_model.cv.sections_input = transformed_sections latexfile_data_model.cv.sections_input = transformed_sections
super().__init__(data_model, environment) super().__init__(latexfile_data_model, environment)
def render_templates(self) -> tuple[str, str, list[tuple[str, list[str], str]]]: def render_templates(self) -> tuple[str, str, list[tuple[str, list[str], str]]]:
"""Render and return all the templates for the $\\LaTeX$ file. """Render and return all the templates for the $\\LaTeX$ file.