Skip to content

Latest commit

 

History

History
80 lines (66 loc) · 2.76 KB

README.md

File metadata and controls

80 lines (66 loc) · 2.76 KB

Contributors Forks Stargazers Issues


Obsidian Markdown to PDF converter

Obsidian markdown to pdf converter
See the example»

Report Bug · Request Feature

About The Project

Obsidian allows you to create beautiful documents but normal Md to PDF convertes do not pay attention to it's styles, so i decided to create my own converter that would do that.

Usage

# import styles
pool = import_obsidian_styles("your_style.css")
# read your document
file_text = read_contents("your_document.md")

# create PDF document
pdf = PrintablePDF()
# write to it
convert_md_to_pdf(file_text, pdf, pool)
# save document
pdf.output("output.pdf")


Reference - Left; Right - Converted


Roadmap

  • Convert text headers
  • Process links
  • Process images
  • html tags
  • Turn it into Obsidian extention