Εργασία με αρχεία markdown (.md)

Το LibreOfficeDev Writer μπορεί να ανοίξει και να αποθηκεύσει αρχεία σε μορφή αρχείου markdown (.md), καθώς και να επικολλήσει περιεχόμενο markdown σε ένα έγγραφο κειμένου.

Το Markdown είναι μια ελαφριά γλώσσα σήμανσης που σας επιτρέπει να μορφοποιείτε κείμενο χρησιμοποιώντας απλή σύνταξη. Χρησιμοποιείται ευρέως για τη σύνταξη τεκμηρίωσης, αρχείων README, αναρτήσεων σε φόρουμ, ακόμη και ορισμένων ηλεκτρονικών μηνυμάτων.

Opening a markdown file

  1. Choose File - Open.

  2. 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

  3. Click Open.

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 contents 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.


Παρακαλούμε, υποστηρίξτε μας!

Παρακαλούμε, υποστηρίξτε μας!