Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Merge branch 'refs/heads/dev' into feature/45896-generate-pdf-document-from-a-work-package-description

as-opa5ccefad16bb
diff --cc app/models/work_package/pdf_export/export/markdown.rb
index 5f2fd96cf7b,03bdde5f746..80da01111ca
--- a/app/models/work_package/pdf_export/export/markdown.rb
+++ b/app/models/work_package/pdf_export/export/markdown.rb
@@@ -95,8 -96,8 +96,8 @@@ module WorkPackage::PDFExport::Export::
end
end
- def write_markdown!(work_package, markdown)
- md2pdf = MD2PDF.new(styles.wp_markdown_styling_yml, pdf)
+ def write_markdown!(work_package, markdown, styling_yml)
- md2pdf = MD2PDFExport.new(styling_yml)
++ md2pdf = MD2PDFExport.new(styling_yml, pdf)
md2pdf.draw_markdown(markdown, pdf, ->(src) {
with_images? ? attachment_image_filepath(work_package, src) : nil
})