Bug 169316 - Writer markdown import: template support
Summary: Writer markdown import: template support
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Miklos Vajna
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-07 10:08 UTC by Miklos Vajna
Modified: 2025-11-11 15:44 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Sample template with styles (11.04 KB, application/vnd.oasis.opendocument.text-template)
2025-11-07 10:08 UTC, Miklos Vajna
Details
Sample markdown input with heading 1 and body text (23 bytes, text/markdown)
2025-11-07 10:08 UTC, Miklos Vajna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miklos Vajna 2025-11-07 10:08:05 UTC
Created attachment 203796 [details]
Sample template with styles

With the recently introduced Writer markdown import filter, we can do markdown -> PDF conversion. But we can't style the used document model, e.g. Heading1 will be the default Writer Heading1 in the PDF output. The request is to make it possible to specify a template document (has no content, just pretty styles) as a cmdline convert-to parameter, so the md->pdf conversion result looks nicer.
Comment 1 Miklos Vajna 2025-11-07 10:08:39 UTC
Created attachment 203797 [details]
Sample markdown input with heading 1 and body text
Comment 2 Commit Notification 2025-11-10 16:45:00 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7462639341c043bf72560e0ddfff06e1e8879859

tdf#169316 sw markdown import: add a TemplateURL parameter

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2025-11-11 14:25:51 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6d1312e160ee8c2c0f65b6e0a86333bf3c9c60ce

tdf#169316 sw markdown import, template: handle non-ODF formats as well

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.