Skip to content

Commit

Permalink
Pleasing black
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Feb 5, 2025
1 parent 3e9c2a6 commit d3da742
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tutorial/md2pdf_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
![Alternate description](https://py-pdf.github.io/fpdf2/fpdf2-logo.png)
""",
extensions=["def_list", "sane_lists", "tables"])
extensions=["def_list", "sane_lists", "tables"],
)

from fpdf import FPDF

Expand Down
7 changes: 5 additions & 2 deletions tutorial/md2pdf_markdown_it.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
from markdown_it import MarkdownIt

md = MarkdownIt("commonmark", {"breaks":True,"html":True})\
.enable("strikethrough").enable("table")
md = (
MarkdownIt("commonmark", {"breaks": True, "html": True})
.enable("strikethrough")
.enable("table")
)
html = md.render(
"""
# Top title (ATX)
Expand Down

0 comments on commit d3da742

Please sign in to comment.