# For API new topics, how do I make a new line? \\n?

**URL:** https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221
**Category:** Support
**Created:** [Septembre 17, 2017, 2:30 UTC](https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221 "2017-09-17T14:30:06Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dylanh724](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dylanh724/32/119642_2.png) [@dylanh724](https://meta.discourse.org/u/dylanh724)
#### Post date: [Septembre 17, 2017, 2:30 UTC](https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221/1 "2017-09-17T14:30:06Z")

</div>

If I’m going to make a new topic with multiple lines in the body, how can I make new lines?

test`\n` ?

test\ntest

**EDIT:** For API posts, would it consider newline characters? How would I go about this?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [Septembre 17, 2017, 4:38 UTC](https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221/2 "2017-09-17T16:38:02Z")

</div>

You can have HTML in the value of the `raw` parameter. Using a `<br>` tag will give you a new line. Or you can use `<p></p>` tags to break your content into paragraphs.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [Septembre 17, 2017, 7:34 UTC](https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221/3 "2017-09-17T19:34:24Z")

</div>

The `raw` parameter is markdown, so you need two newlines to make a new paragraph.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [Septembre 17, 2017, 9:53 UTC](https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221/4 "2017-09-17T21:53:15Z")

</div>

You may need both carriage return _and_ line feed.  
`\r\n`

---

<div class="post-metadata">

### Author: ![dylanh724](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dylanh724/32/119642_2.png) [@dylanh724](https://meta.discourse.org/u/dylanh724)
#### Post date: [Septembre 18, 2017, 1:28 UTC](https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221/5 "2017-09-18T01:28:07Z")

</div>

> [@riking](#):
>
> The raw parameter is markdown, so you need to newlines to make a new paragraph.

will html work? `<br>` and other things like `<b>` or `<strong>`?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [Septembre 18, 2017, 1:28 UTC](https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221/6 "2017-09-18T01:28:57Z")

</div>

Yes, Discourse markdown accepts a limited set of HTML. (Basically, anything you could already input.)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [Juin 8, 2024, 12:44 UTC](https://meta.discourse.org/t/for-api-new-topics-how-do-i-make-a-new-line-n/70221/7 "2024-06-08T12:44:16Z")

</div>

Ce sujet a été automatiquement fermé après 2455 jours. Les nouvelles réponses ne sont plus autorisées.
