vb64 / markdown-pdf

Markdown to pdf renderer
MIT License
22 stars 2 forks source link

Support highlight? #24

Closed 17Reset closed 1 week ago

17Reset commented 1 week ago

When I output the entire markdown content as a pdf, there is no block highlighting and it shows the incomplete markdown, with a portion on the right side being cut

from markdown_pdf import MarkdownPdf
from markdown_pdf import Section

def markdown_pdf_write(file_fullname, file_contents):
    pdf = MarkdownPdf(toc_level=2)
    pdf.add_section(Section(file_contents, toc=False))

    pdf.save(file_fullname)
vb64 commented 1 week ago

At the moment lib doesn't support syntax highlight. See this topic.