# How to make a line break and empty line in Literate.jl?

**URL:** <https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462>\
**Category:** General Usage\
**Tags:** documenter, literate\
**Created:** [April 3, 2024, 10:11am UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462 "2024-04-03T10:11:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladdez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vladdez/32/45806_2.png) [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Post date:** [April 3, 2024, 10:11am UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/1 "2024-04-03T10:11:24Z")

</div>

How to make a line break and blank line in Literate.jl (separately)? For some reason it differs from the methods used in typical Markdown.  
Simple question, but it breaks my mind.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [April 3, 2024, 11:39am UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/2 "2024-04-03T11:39:25Z")

</div>

When you say “methods used in typical Markdown”, do you mean something like double space ([https://discourse.julialang.org/t/line-breaks-in-markdown/17473](https://discourse.julialang.org/t/line-breaks-in-markdown/17473))? Literate.jl just leaves the Markdown alone and any parsing and processing is done by the consumer (e.g. Documenter or other things).

---

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [April 3, 2024, 11:40am UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/3 "2024-04-03T11:40:25Z")

</div>

Not at a computer to check, but isn’t it just

```julia
# # My heading
#
# some text followed by line break and blank line
#
# some other text

```

?

---

<div class="post-metadata">

**Author:** ![vladdez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vladdez/32/45806_2.png) [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Post date:** [April 3, 2024, 11:56am UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/4 "2024-04-03T11:56:12Z")

</div>

I meant smtt like:

```julia
text\\
text

```

\\ is a line breaker

---

<div class="post-metadata">

**Author:** ![vladdez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vladdez/32/45806_2.png) [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Post date:** [April 3, 2024, 11:58am UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/5 "2024-04-03T11:58:23Z")

</div>

Maybe I wasn’t clear: I would like to be able to create line break and blank line separately. In one case only first, in another only the second.

I think this example answers the case with a blank line, so thank you too ^^

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [April 3, 2024, 1:06pm UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/6 "2024-04-03T13:06:44Z")

</div>

`\\` is not Markdown but LaTeX I think, in Markdown you should be able to just use HTML, I think, so `<br>` should do the job maybe?

---

<div class="post-metadata">

**Author:** ![vladdez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vladdez/32/45806_2.png) [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Post date:** [April 3, 2024, 1:54pm UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/7 "2024-04-03T13:54:35Z")

</div>

It didn’t worked: [ERP image · UnfoldMakie.jl](https://unfoldtoolbox.github.io/UnfoldMakie.jl/previews/PR157/generated/tutorials/erpimage/)

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [April 3, 2024, 2:02pm UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/8 "2024-04-03T14:02:08Z")

</div>

Ah, I at least expected that to work before I would expect `\\` to work. Maybe (depending on the workflow, I am not super familiar with Literate.jl`one has to specify the`  
` as raw html.

---

<div class="post-metadata">

**Author:** ![vladdez](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vladdez/32/45806_2.png) [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Post date:** [April 3, 2024, 3:08pm UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/9 "2024-04-03T15:08:25Z")

</div>

Unfortunately, doesn’t work: [UnfoldMakie Documentation · UnfoldMakie.jl](https://unfoldtoolbox.github.io/UnfoldMakie.jl/previews/PR157/)

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [April 3, 2024, 3:50pm UTC](https://discourse.julialang.org/t/how-to-make-a-line-break-and-empty-line-in-literate-jl/112462/10 "2024-04-03T15:50:51Z")

</div>

Oh, I did not check how to actually do that, sorry, but `@raw` is just for a _string_ in _Julia_ to be raw. I know how to do that in both Documenter (where it is indeed nearly what you wrote, but only for blocks, which does not help so much) and for Quarto/Pandoc. I could not yet find this for Literate.jl
