diff --git a/webapp/channels/src/utils/markdown/index.test.ts b/webapp/channels/src/utils/markdown/index.test.ts index a2d09435e9..f239bfc44a 100644 --- a/webapp/channels/src/utils/markdown/index.test.ts +++ b/webapp/channels/src/utils/markdown/index.test.ts @@ -44,8 +44,7 @@ x^2 + y^2 = z^2 const input = `- a - b - c`; - const expected = ``; + const expected = ''; const output = format(input); expect(output).toBe(expected); @@ -55,8 +54,7 @@ x^2 + y^2 = z^2 const input = `1. a 2. b 3. c`; - const expected = `
    -
  1. a
  2. b
  3. c
`; + const expected = '
  1. a
  2. b
  3. c
'; const output = format(input); expect(output).toBe(expected); @@ -66,8 +64,7 @@ x^2 + y^2 = z^2 const input = `0. a 1. b 2. c`; - const expected = `
    -
  1. a
  2. b
  3. c
`; + const expected = '
  1. a
  2. b
  3. c
'; const output = format(input); expect(output).toBe(expected); @@ -77,8 +74,7 @@ x^2 + y^2 = z^2 const input = `999. a 1. b 1. c`; - const expected = `
    -
  1. a
  2. b
  3. c
`; + const expected = '
  1. a
  2. b
  3. c
'; const output = format(input); expect(output).toBe(expected); diff --git a/webapp/channels/src/utils/markdown/renderer.tsx b/webapp/channels/src/utils/markdown/renderer.tsx index dba82f795f..2633dc1bc4 100644 --- a/webapp/channels/src/utils/markdown/renderer.tsx +++ b/webapp/channels/src/utils/markdown/renderer.tsx @@ -235,7 +235,7 @@ export default class Renderer extends marked.Renderer { // style it properly. We need to use a CSS counter to tell the ::before elements which numbers to show. output += ` style="counter-reset: list ${start - 1}"`; } - output += `>\n${content}`; + output += `>${content}`; return output; }