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

resolve conflict merge

as-op695d8e1d8daf
diff --git a/app/models/work_package/pdf_export/export/markdown.rb b/app/models/work_package/pdf_export/export/markdown.rb
index 94d36348eda..c6e31c505bd 100644
--- a/app/models/work_package/pdf_export/export/markdown.rb
+++ b/app/models/work_package/pdf_export/export/markdown.rb
@@ -96,8 +96,8 @@ module WorkPackage::PDFExport::Export::Markdown
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, pdf)
md2pdf.draw_markdown(markdown, pdf, ->(src) {
with_images? ? attachment_image_filepath(work_package, src) : nil
})