# Wijziging van hoe lijsten met tags worden gescheiden

**URL:** <https://meta.discourse.org/t/change-to-how-lists-of-tags-are-separated/356258>\
**Category:** Development\
**Tags:** dev-news\
**Created:** [7 maart 2025 om 14:11 UTC](https://meta.discourse.org/t/change-to-how-lists-of-tags-are-separated/356258 "2025-03-07T14:11:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [7 maart 2025 om 14:11 UTC](https://meta.discourse.org/t/change-to-how-lists-of-tags-are-separated/356258/1 "2025-03-07T14:11:55Z")

</div>

Lists of tags on topics in Discourse are separated by commas by default. This isn’t changing, but how it’s implemented and how you can change it has:

 ![The image offers a text input prompt asking for a favorite TV show scene, accompanied by placeholder tags and a mention of "0 votes." (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/2/e/5/2e58d1e146e59242212a20b7276aeabdd8f729ad.png)

Previously we used a CSS [pseudo element](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements) to add the commas, which isn’t ideal because the content isn’t technically available as part of the document — screenreaders can’t access it, they’re not selectable, web crawlers can’t see them…

This change merged today moves the tag separators to proper HTML: [FEATURE: customizable tag separator with value transformer in proper HTML by awesomerobot · Pull Request #31674 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/31674)

For most sites this won’t change anything obvious, but if you previously removed or changed the tag separator you’ll have to use a value transformer instead of CSS.

This is a fairly straightforward process with JS, for example if you want to remove the comma entirely:

```js
import { apiInitializer } from "discourse/lib/api";

export default apiInitializer((api) => {
  api.registerValueTransformer("tag-separator", () => "");
});

```

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/f/a/3fa12cd547cf8b1ba9a8c0ba544fa5733ffbeedb.png)

or if you want to use a pipe separator

```js
import { apiInitializer } from "discourse/lib/api";

export default apiInitializer((api) => {
  api.registerValueTransformer("tag-separator", () => "|");
});

```

coupled with a little CSS:

```css
.discourse-tags__tag-separator {
  margin-inline: 0.25em;
}

```

 ![The image displays a question "Most inspirational movie you have ever seen?" with tags such as gaming, dev, blog, job-application, and feature beneath it in a minimalist design. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/b/0/8/b08aeecf0bfac11a229fe0db4bdf3d215596230f.png)

Let us know if you encounter any issues with this change!

---

_[View the full topic](https://meta.discourse.org/t/change-to-how-lists-of-tags-are-separated/356258)._
