{"id":1023,"date":"2024-12-23T13:15:12","date_gmt":"2024-12-23T12:15:12","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/?p=1023"},"modified":"2024-12-23T13:16:31","modified_gmt":"2024-12-23T12:16:31","slug":"til-styling-obsidian-text-paragraphs","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/","title":{"rendered":"TIL: Styling Obsidian text paragraphs"},"content":{"rendered":"<p>TIL that it&#8217;s possible to style <a href=\"https:\/\/obsidian.md\/\">Obsidian<\/a> text paragraphs in a way that allows me to focus on the actual text content and not on the fact that I need to add an artificial line break every time I type a paragraph :-)<\/p>\n<p>Obsidian can use CSS snippets to style the application itself and the text\/markdown content. The CSS snippets need to be saved in <code>&lt;vault_directory&gt;\/snippets\/whatever.css<\/code>.<br \/>\nThis is how to get that &#8220;natural&#8221; book-like spacing between paragraphs, and avoid adding spurious line breaks in the markdown code:<\/p>\n<p><code><br \/>\n.cm-contentContainer {<br \/>\n&nbsp;&nbsp;line-height: 1.70rem;<br \/>\n}<\/p>\n<p>.markdown-source-view.mod-cm6 .cm-content &gt; .cm-line {<br \/>\n&nbsp;&nbsp;padding-bottom: 12px !important;<br \/>\n}<br \/>\n<\/code><\/p>\n<p>Of course, the values for main line-height and padding will depend on your particular screen and font settings. In my case I use a screen tilted in vertical position for writing and coding, and my font of choice is the beautiful Berkeley Graphics&#8217;s <a href=\"https:\/\/berkeleygraphics.com\/typefaces\/berkeley-mono\/\">Berkeley Mono<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>TIL that it&#8217;s possible to style Obsidian text paragraphs in a way that allows me to focus on the actual text content and not on the fact that I need to add an artificial line break every time I type a paragraph :-) Obsidian can use CSS snippets to style the application itself and the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[542,578],"tags":[52,580,579],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>TIL: Styling Obsidian text paragraphs - Random hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TIL: Styling Obsidian text paragraphs - Random hacking\" \/>\n<meta property=\"og:description\" content=\"TIL that it&#8217;s possible to style Obsidian text paragraphs in a way that allows me to focus on the actual text content and not on the fact that I need to add an artificial line break every time I type a paragraph :-) Obsidian can use CSS snippets to style the application itself and the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-23T12:15:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-23T12:16:31+00:00\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"TIL: Styling Obsidian text paragraphs\",\"datePublished\":\"2024-12-23T12:15:12+00:00\",\"dateModified\":\"2024-12-23T12:16:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/\"},\"wordCount\":139,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"keywords\":[\"css\",\"obsidian\",\"til\"],\"articleSection\":[\"Development\",\"TIL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/\",\"name\":\"TIL: Styling Obsidian text paragraphs - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"datePublished\":\"2024-12-23T12:15:12+00:00\",\"dateModified\":\"2024-12-23T12:16:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TIL: Styling Obsidian text paragraphs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TIL: Styling Obsidian text paragraphs - Random hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/","og_locale":"en_US","og_type":"article","og_title":"TIL: Styling Obsidian text paragraphs - Random hacking","og_description":"TIL that it&#8217;s possible to style Obsidian text paragraphs in a way that allows me to focus on the actual text content and not on the fact that I need to add an artificial line break every time I type a paragraph :-) Obsidian can use CSS snippets to style the application itself and the [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/","og_site_name":"Random hacking","article_published_time":"2024-12-23T12:15:12+00:00","article_modified_time":"2024-12-23T12:16:31+00:00","author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"TIL: Styling Obsidian text paragraphs","datePublished":"2024-12-23T12:15:12+00:00","dateModified":"2024-12-23T12:16:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/"},"wordCount":139,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"keywords":["css","obsidian","til"],"articleSection":["Development","TIL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/","name":"TIL: Styling Obsidian text paragraphs - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"datePublished":"2024-12-23T12:15:12+00:00","dateModified":"2024-12-23T12:16:31+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2024\/12\/til-styling-obsidian-text-paragraphs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"TIL: Styling Obsidian text paragraphs"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/1023"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=1023"}],"version-history":[{"count":2,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/1023\/revisions"}],"predecessor-version":[{"id":1025,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/1023\/revisions\/1025"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=1023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=1023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}