Update app.py
Browse files
app.py
CHANGED
@@ -280,7 +280,7 @@ def create_pdf(markdown_text, base_font_size, render_with_bold, auto_bold_number
|
|
280 |
column_cells[col_idx].append(Paragraph(apply_emoji_font(heading_text, "NotoEmoji-Bold"), heading_style))
|
281 |
elif item.startswith("<b>") and item.endswith("</b>"):
|
282 |
content = item[3:-4].strip()
|
283 |
-
#
|
284 |
if number_pattern.match(content):
|
285 |
column_cells[col_idx].append(Paragraph(apply_emoji_font(content, "NotoEmoji-Bold"), numbered_bold_style))
|
286 |
else:
|
@@ -400,8 +400,8 @@ def create_crossfile_pdfs(source_pdf="TestSource.pdf", target_pdf="TestTarget.pd
|
|
400 |
|
401 |
create_base_pdf(source_pdf)
|
402 |
create_base_pdf(target_pdf)
|
403 |
-
add_bookmark_to_seven(
|
404 |
-
modify_source_pdf(
|
405 |
add_internal_link(source_pdf)
|
406 |
add_internal_link(target_pdf)
|
407 |
return source_pdf, target_pdf
|
|
|
280 |
column_cells[col_idx].append(Paragraph(apply_emoji_font(heading_text, "NotoEmoji-Bold"), heading_style))
|
281 |
elif item.startswith("<b>") and item.endswith("</b>"):
|
282 |
content = item[3:-4].strip()
|
283 |
+
# Ensure all numbered lines use numbered_bold_style
|
284 |
if number_pattern.match(content):
|
285 |
column_cells[col_idx].append(Paragraph(apply_emoji_font(content, "NotoEmoji-Bold"), numbered_bold_style))
|
286 |
else:
|
|
|
400 |
|
401 |
create_base_pdf(source_pdf)
|
402 |
create_base_pdf(target_pdf)
|
403 |
+
add_bookmark_to_seven(pdf_file)
|
404 |
+
modify_source_pdf(source, target)
|
405 |
add_internal_link(source_pdf)
|
406 |
add_internal_link(target_pdf)
|
407 |
return source_pdf, target_pdf
|