Add the markdown

Report a typo

Fpdf2 supports basic Markdown-like styling: **bold**, __italics__, --underlined--. We only need add an optional markdown=True parameter to the cell method.

Let's organize the following lines to add some markdown to a sample cell.

Put the items in the correct order
pdf = FPDF()
pdf.add_page()
pdf.cell(txt="**Hello** __word__ --python--", markdown=True)
pdf.set_font("Times", size=60)
from fpdf import FPDF
pdf.output("sample.pdf")
___

Create a free account to access the full topic