feat: embed pdf

This commit is contained in:
Jannat Patel
2023-08-31 23:29:56 +05:30
parent 833e714a1f
commit ffd9d56896
5 changed files with 35 additions and 15 deletions

View File

@@ -147,6 +147,8 @@ def get_lesson_details(chapter):
)
lesson_details.number = flt(f"{chapter.idx}.{row.idx}")
lesson_details.icon = get_lesson_icon(lesson_details.body)
if lesson_details.instructor_notes:
lesson_details.instructor_notes = markdown_to_html(lesson_details.instructor_notes)
lessons.append(lesson_details)
return lessons
@@ -311,7 +313,6 @@ def render_html(lesson):
if lesson.question:
assignment = "{{ Assignment('" + lesson.question + "-" + lesson.file_type + "') }}"
text = text + assignment
return markdown_to_html(text)