DEV Community

Unpublished Post. This URL is public but secret, so share at your own discretion.

Runkit bug demo

{% runkit %}
  const foo = {
    a: 1,
    b: 2
  }
{% endrunkit %}

yields no code on lines 1 or 2, plus two trailing lines:

const foo = { a: 1, b: 2 }

Meanwhile,

{% runkit %}const foo = {
    a: 1,
    b: 2
  }{% endrunkit %}

yields no code on line 1, and extra indentation on line 2, plus one trailing line:

const foo = { a: 1, b: 2 }

Top comments (0)