improve renderer

This commit is contained in:
Sina Atalay 2024-02-18 17:12:35 +01:00
parent e935764c40
commit 4306e87e1b
1 changed files with 3 additions and 2 deletions

View File

@ -860,7 +860,8 @@ def copy_theme_files_to_output_directory(
): ):
"""Copy the auxiliary files (all the files that don't end with `.j2.tex` and `.py`) """Copy the auxiliary files (all the files that don't end with `.j2.tex` and `.py`)
of the theme to the output directory. For example, the "classic" theme has custom of the theme to the output directory. For example, the "classic" theme has custom
fonts, and the $\\LaTeX$ needs it. fonts, and the $\\LaTeX$ needs it. If the theme is a custom theme, then it will be
copied from the current working directory.
Args: Args:
theme_name (str): The name of the theme. theme_name (str): The name of the theme.
@ -988,7 +989,7 @@ def markdown_to_html(markdown_file_path: pathlib.Path) -> pathlib.Path:
raise FileNotFoundError(f"The file {markdown_file_path} doesn't exist!") raise FileNotFoundError(f"The file {markdown_file_path} doesn't exist!")
html_file_path = ( html_file_path = (
markdown_file_path.parent / f"{markdown_file_path.name}_PASTETOGRAMMARLY.html" markdown_file_path.parent / f"{markdown_file_path.stem}_PASTETOGRAMMARLY.html"
) )
# Convert the markdown file to HTML: # Convert the markdown file to HTML: