ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

handle ins/del in header return types

Open bakkot opened this issue 5 months ago • 0 comments

From https://github.com/tc39/ecmarkup/issues/609:

<emu-clause id="sec-foobar" type="abstract operation">
  <h1>
    FooBar (
      _v_: an ECMAScript language value,
    ): <ins>an integer</ins><del>either a normal completion containing an integer, or a throw completion</del>
  </h1>
  <dl class="header">
    <dt>description</dt>
    <dd></dd>
  </dl>
  <emu-alg>
    1. <del>Throw a *RangeError* exception.</del>
    1. Return 42.
  </emu-alg>
</emu-clause>

errors with

(file):5:23: unknown extra text in header

bakkot avatar Sep 17 '24 17:09 bakkot