Моля, подкрепете ни!

Работа с файлове във формат Markdown (.md)

LibreOfficeDev Writer може да отваря и записва файлове във формат Markdown (.md), както и да поставя съдържание във формат Markdown в текстов документ.

Markdown е лек език за маркиране, който позволява форматиране на текст чрез прост синтаксис. Той се използва широко за писане на документация, файлове README, публикации във форуми и дори електронни писма.

Отваряне на файл във формат Markdown

  1. Изберете Файл - Отваряне.

  2. Намерете файла във формат Markdown, който искате да отворите.

    Ако файлът има разширение *.md, изберете файла.

    Ако файлът във формат Markdown има друго разширение, изберете файла, после изберете „Документ на Markdown (.md, .markdown)“ в полето Тип файл.

  3. Щракнете върху Отваряне.

To save a file in Markdown format

  1. Open the text document that you want to save as a Markdown file.

  2. Choose File - Save as.

  3. In the File name box, enter a name for the file.

  4. In the File type box, select "Markdown Document (.md)".

  5. Click Save.

Pasting Markdown content in a LibreOfficeDev text document.

You can paste Markdown content directly into a LibreOfficeDev 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.


Opening a Markdown file using the command line

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

Икона Съвет

LibreOfficeDev implements the CommonMark Markdown specification.