{"id":8752,"date":"2023-09-23T18:03:03","date_gmt":"2023-09-23T16:03:03","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=8752"},"modified":"2023-09-23T18:03:05","modified_gmt":"2023-09-23T16:03:05","slug":"markdown-die-syntax","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/23\/markdown-die-syntax\/","title":{"rendered":"Markdown &#8211; die Syntax"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Markdown ist eine sogenannte Auszeichnungssprache &#8211; mit einer solchen lassen sich Texte unterschiedlichster Art schnell und einfach erstellen und in andere Formate konvertieren. Auf der Linux Bibel finden sich zwar schon einige Editoren f\u00fcr diese Sprache &#8211; eine umfassende Dokumentation dazu jedoch noch nicht. Als Editor nutze ich hier ReText &#8211; dieser l\u00e4sst sich unter auf Debian basierenden Linux-Distributionen ganz einfach \u00fcber die\u00a0Paket-Verwaltung\u00a0durch das Paket &#8222;<strong>retext<\/strong>&#8220; installieren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sie teilen den Editor \u00fcber die Schaltfl\u00e4che &#8222;<strong>Vorschau<\/strong>&#8220; &#8211; nutzen Sie den kleinen Pfeil rechts daneben, um die Live-Vorschau zu aktivieren:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1024x576.jpg\" alt=\"\" class=\"wp-image-8753\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Die Markdown-Syntax<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Die Syntax von Markdown ist sehr einfach gehalten &#8211; man soll mit m\u00f6glichst wenigen Tasten und vor allem mit m\u00f6glichst wenigen bis keinen Klicks zu einem anspruchsvollen Ergebnis kommen. Beginnen wir einmal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u00dcberschrift 1\n## \u00dcberschrift 2\n### \u00dcberschrift 3\n#### \u00dcberschrift 4\n##### \u00dcberschrift 5\n###### \u00dcberschrift 6<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sehen wir uns die ganze Geschichte im Editor an:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1-1024x576.jpg\" alt=\"\" class=\"wp-image-8754\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Gehen wir gleich einmal weiter, wir erstellen kursiven Text:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Dieser *Text ist schr\u00e4g mit Asterisks* geschrieben.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Oder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Dieser _Text ist schr\u00e4g, mit Unterstrichen_ geschrieben.<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Dieser **Text ist wiederum fett mit Asterisks** geschrieben.<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Dieser __Text ist wiederum fett mit Unterstrichen__ geschrieben.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nutzt man nur die zwei gr\u00f6\u00dften \u00dcberschriften, l\u00e4sst sich dies auch mit Unterstrichen regeln:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u00dcberschrift 1\n=========<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>\u00dcberschrift 2\n-----------------<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-2-1024x576.jpg\" alt=\"\" class=\"wp-image-8755\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-2-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt erstellen wir einen Link:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Linux Bibel \u00d6sterreich](https:\/\/linux-bibel-oesterreich.at)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Abs\u00e4tze erstellen wir ganz einfach durch eine Leerzeile. Auch Tasten lassen sich sehr einfach darstellen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Taste `&lt;Tab&gt;` und die `&lt;Leertaste&gt;`.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Einen Zeilenumbruch erstellen Sie, indem Sie zwei Leerzeichen erstellen und anschlie\u00dfend\u00a0<strong><kbd>Eingabe<\/kbd><\/strong>\u00a0dr\u00fccken. Linien erstellen Sie so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-----\n_____\n*****<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-3-1024x576.jpg\" alt=\"\" class=\"wp-image-8756\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-3-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-3-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-3-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-3-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-3-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt erstellen wir Bl\u00f6cke:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt; Ein erster Block in Markdown.\n&gt;&gt; Und ein tiefer gesetzter Block in Markdown.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">E-Mail-Adressen lassen sich ganz einfach einf\u00fcgen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;mail-adresse@gmail.com&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt f\u00fcgen wir ein Bild ein:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>!&#91;Ein Bild](\/home\/robertg\/Downloads\/markdownx.jpg)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-4-1024x576.jpg\" alt=\"\" class=\"wp-image-8757\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-4-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-4-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-4-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-4-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-4-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-4.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Gehen wir weiter mit Listen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Erster Punkt\n2. Zweiter Punkt\n3. Dritter Punkt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Listen ohne Ordnung:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>+ Erster Punkt\n+ Zweiter Punkt\n+ Dritter Punkt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Oder geordnete Listen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Erster Punkt\n       1. Erster Unterpunkt\n       2. Zweiter Unterpunkt\n2. Zweiter Punkt\n3. Dritter Punkt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Oder eben:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>+ Erster Punkt\n      + Erster Unterpunkt\n      + Zweiter Unterpunkt\n+ Zweiter Punkt\n+ Dritter Punkt<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-5-1024x576.jpg\" alt=\"\" class=\"wp-image-8758\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-5-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-5-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-5-150x84.jpg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-5-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-5-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/markdown-5.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ein Code-Block:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>`apt install retext`<\/code><\/pre>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"8752\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"8752\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Markdown ist eine sogenannte Auszeichnungssprache &#8211; mit einer solchen lassen sich Texte unterschiedlichster Art schnell und einfach erstellen und in andere Formate konvertieren. Auf der Linux Bibel finden sich zwar schon einige Editoren f\u00fcr diese Sprache &#8211; eine umfassende Dokumentation dazu jedoch noch nicht. Als Editor nutze ich hier ReText &#8211; dieser l\u00e4sst sich unter [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8757,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[59],"class_list":["post-8752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-buero","tag-buero"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/8752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=8752"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/8752\/revisions"}],"predecessor-version":[{"id":8759,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/8752\/revisions\/8759"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/8757"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=8752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=8752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=8752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}