mirror of
https://github.com/rendercv/rendercv.git
synced 2026-03-02 13:36:19 -05:00
renderer: fix a markdown parsing bug
This commit is contained in:
@@ -185,9 +185,9 @@ class LaTeXFile(TemplatedFile):
|
||||
# ones with \textnormal:
|
||||
|
||||
# Find all the nested commands:
|
||||
nested_commands = re.findall(r"\\textbf{.*?(\\textbf{.*?})", result)
|
||||
nested_commands += re.findall(r"\\textit{.*?(\\textit{.*?})", result)
|
||||
nested_commands += re.findall(r"\\underline{.*?(\\underline{.*?})", result)
|
||||
nested_commands = re.findall(r"\\textbf{[^}]*?(\\textbf{.*?})", result)
|
||||
nested_commands += re.findall(r"\\textit{[^}]*?(\\textit{.*?})", result)
|
||||
nested_commands += re.findall(r"\\underline{[^}]*?(\\underline{.*?})", result)
|
||||
|
||||
# Replace the inner commands with \textnormal:
|
||||
for nested_command in nested_commands:
|
||||
|
||||
Reference in New Issue
Block a user