LibreOffice 26.2 Help
LibreOffice Writer can open and save files in markdown (.md) file format, as well as paste markdown contents in a text document.
Markdown is a lightweight markup language that allows you to format text using simple syntax. It is widely used for writing documentation, README files, forum posts, and even some emails.
Choose .
Locate the markdown file that you want to open.
If the file has a *.md extension, select the file.
If the markdown file has another extension, select the file, and then select "Markdown Document (.md, .markdown)" in the File type box
Click .
Open the text document that you want to save as a Markdown file.
Choose .
In the box, enter a name for the file.
In the box, select "Markdown Document (.md)".
Click .
You can paste Markdown content directly into a LibreOffice Writer document. Writer intelligently applies the corresponding styles, automatically assigning paragraph, list, and character formatting, using the automatic (default) styles.
You can import styles from a custom template to customize the automatic styles.
You can open a Markdown file from the command line and automatically apply a template to generate a custom-formatted text document. Enter the following command in your operating system’s command shell to apply the template file template.ott to the file test.md:
soffice --infilter='Markdown:{"TemplateURL":{"type":"string","value":"./template.ott"}}' test.md
LibreOffice implements the CommonMark markdown specification.