When Using Liquid, line breaks in post builder are ignored

Environment

Discourse Version: 3.5.0.beta4

Plugin Commit: FIX: handle data arrays in wizard field interpolation · paviliondev/discourse-custom-wizard@7b37b41 · GitHub

Steps to Reproduce

  1. Create topic input field
  2. post builder, add output below
Test yo:| Strain | Link |
| --- | --- |```

Output in topic:


Test yo:| Strain | Link |
| — | — |
| Glueberry OG von Dutch Passion | Check it out |
| Skywalker OG Gelato Auto (Ganja Farmer Seeds) - Steckbrief, Erfahrungen, etc | Check it out |



## Example

https://cablogstaging.discoursehosting.net/t/keio-enionioe/64239

Wizard.json attached
I tried to fix via <br><br> and , but they are rendered as text
I tried via `\n`, but then line break AND \n are rendered as below

Test yo:
\n
\n


## Logs

nothing in log

Quick update: with some dodgy workarounds I managed to make it work. But it would be nice from usability to make the line breaks work outside the box and maybe wrap liquid code so that it doesn’t break those?

{%- capture result -%}
Test yo:

| Strain | Link |
| --- | --- |
{%- capture raw_data -%}w{step_1_field_2}{%- endcapture -%}
{%- assign parts = raw_data | split: "}, {" -%}
{%- for part in parts -%}
  {%- if part contains "title" and part contains "url" -%}
    {%- assign title_start = part | split: 'title"=>"' -%}
    {%- if title_start.size > 1 -%}
      {%- assign title_end = title_start[1] | split: '", "' -%}
      {%- assign title = title_end[0] -%}
      {%- assign url_start = part | split: 'url"=>"' -%}
      {%- if url_start.size > 1 -%}
        {%- assign url_end = url_start[1] | split: '"' -%}
        {%- assign url = url_end[0] -%}
| {{ title }} | [Check it out]({{ url }}) |
      {%- endif -%}
    {%- endif -%}
  {%- endif -%}
{%- endfor -%}
{%- endcapture -%}
{%- assign result_with_newlines = result | replace: "| --- | --- ||", "| --- | --- |
|" | replace: ") ||", ") |
|" -%}
{{ result_with_newlines }}