Práce se soubory Markdown (.md)

LibreOffice Writer umí otevírat a ukládat soubory ve formátu Markdown (.md) a také vkládat obsah Markdownu do textového dokumentu.

Markdown je jednoduchý značkovací jazyk, který umožňuje formátovat text pomocí jednoduché syntaxe. Je široce používán pro psaní dokumentace, souborů README, příspěvků na fórech a dokonce i některých e-mailů.

Otevření Markdown souboru

  1. Zvolte Soubor - Otevřít.

  2. Najděte Markdown soubor, který chcete otevřít.

    Pokud má příponu *.md, vyberte ho.

    Pokud má soubor Markdown jinou příponu, vyberte soubor a poté v poli Typ souboru vyberte možnost „Dokument Markdown (.md, .markdown)“.

  3. Klepněte na Otevřít.

Uložení souboru ve formátu Markdown

  1. Otevřete textový dokument, který chcete uložit jako soubor Markdown.

  2. Zvolte Soubor - Uložit jako.

  3. V poli Název souboru zadejte název souboru.

  4. V poli Typ souboru vyberte možnost „Dokument Markdown (.md)“.

  5. Klikněte na Uložit.

Vkládání obsahu Markdownu do textového dokumentu LibreOffice.

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.

Ikona tipu

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

Ikona tipu

LibreOffice implements the CommonMark Markdown specification.


Podpořte nás!

Podpořte nás!