Skip to content

Altair200333/ObsidianMDtoPDF

Repository files navigation

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

About

Obsidian MD to PDF converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published