# How to override the buildQuote function?

**URL:** <https://meta.discourse.org/t/how-to-override-the-buildquote-function/164355>\
**Category:** Development\
**Created:** [September 17, 2020, 1:46pm UTC](https://meta.discourse.org/t/how-to-override-the-buildquote-function/164355 "2020-09-17T13:46:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [September 17, 2020, 1:46pm UTC](https://meta.discourse.org/t/how-to-override-the-buildquote-function/164355/1 "2020-09-17T13:46:27Z")

</div>

Hi!

I’d like to try to modify the `buildQuote` function so it adds a new line before the opening `[quote]` tag.

Basically, modifying this:

```js
  return `[quote="${params.join(", ")}"]\n${contents.trim()}\n[/quote]\n\n`;

```

to this:

```js
  return `\n[quote="${params.join(", ")}"]\n${contents.trim()}\n[/quote]\n\n`;

```

Is it possible to do such a thing with a theme component? How do I override this function? 😃

---

_[View the full topic](https://meta.discourse.org/t/how-to-override-the-buildquote-function/164355)._
