mirror of https://github.com/eyhc1/rendercv.git
fix a bug in transform_markdown_data_model_to_latex_data_model
This commit is contained in:
parent
4722a8b6b3
commit
b00a3779a6
|
@ -486,10 +486,14 @@ def transform_markdown_data_model_to_latex_data_model(
|
||||||
for section_title, entries in sections.items():
|
for section_title, entries in sections.items():
|
||||||
transformed_entries = []
|
transformed_entries = []
|
||||||
for entry in entries:
|
for entry in entries:
|
||||||
transformed_entry = (
|
if isinstance(entry, str):
|
||||||
transform_markdown_data_model_to_latex_data_model(entry)
|
result = markdown_to_latex(escape_latex_characters(entry))
|
||||||
)
|
transformed_entries.append(result)
|
||||||
transformed_entries.append(transformed_entry)
|
else:
|
||||||
|
transformed_entry = (
|
||||||
|
transform_markdown_data_model_to_latex_data_model(entry)
|
||||||
|
)
|
||||||
|
transformed_entries.append(transformed_entry)
|
||||||
setattr(data_model, key, sections)
|
setattr(data_model, key, sections)
|
||||||
else:
|
else:
|
||||||
# Then it means it's a sub data model.
|
# Then it means it's a sub data model.
|
||||||
|
|
Loading…
Reference in New Issue