From d27f99c504dcaf2203c7d6cc1c83cbbabc57f14b Mon Sep 17 00:00:00 2001 From: "tina-cloud-app[bot]" <58178390+tina-cloud-app[bot]@users.noreply.github.com> Date: Sun, 10 Dec 2023 06:51:30 +0000 Subject: [PATCH] TinaCMS content update Co-authored-by: @cassidoo <1454517+cassidoo@users.noreply.github.com> --- src/posts/line-break-md.md | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/posts/line-break-md.md diff --git a/src/posts/line-break-md.md b/src/posts/line-break-md.md new file mode 100644 index 0000000..08ef51b --- /dev/null +++ b/src/posts/line-break-md.md @@ -0,0 +1,47 @@ +--- +layout: ../layouts/BlogPost.astro +title: Making a single line break in markdown +slug: line-break-md +description: Here's how you can add single line breaks in your markdown documents! +tags: + - technical +added: 2023-12-10T06:49:17.431Z +--- + +Sometimes when you write markdown, you'll write some paragraph... + +and then you hit "Enter" twice to make another paragraph. + +``` +Like this... + +...and then this. +``` + +This will render: + +```html +

Like this...

+

...and then this.

+``` + +But, sometimes you want to make a single line break, kind of like in HTML where you have: + +```html +

+Like this...
+...and then this. +

+``` + +In markdown, you **can** just drop in a `
` and it'll work perfectly fine. But, if you want to keep your markdown HTML-less, you can add a backslash `\` after your line, like so! + +``` +Like this...\ +...and then this. +``` + +This is supported in *most* markdown processors, but not all of them. Definitely check on the one you're using before you push to prod. Some processors also allow you to add a double space at the end of a line as well (truly just ` `, hit your spacebar twice), but since a lot of code editor setups trim empty spaces, I personally prefer the backslash way. + +Have\ +fun!