Updates for md2pdf #1

Merged
tforgione merged 6 commits from williamdes/md2pdf:master into master 2022-10-02 15:27:28 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 764f48ec48 - Show all commits

View File

@ -82,7 +82,7 @@ pub fn markdown_to_latex(markdown: String) -> String {
Event::Start(Tag::Image(_, path, title)) => { Event::Start(Tag::Image(_, path, title)) => {
output.push_str("\\begin{figure}\n"); output.push_str("\\begin{figure}\n");
output.push_str("\\centering\n"); output.push_str("\\centering\n");
output.push_str("\\includegraphics[width=\\textwidth]{");; output.push_str("\\includegraphics[width=\\textwidth]{");
output.push_str(&*path); output.push_str(&*path);
output.push_str("}\n"); output.push_str("}\n");
output.push_str("\\caption{"); output.push_str("\\caption{");