ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

Structured headers don't seem to work with links in headers

Open Ms2ger opened this issue 2 years ago • 2 comments

As used in Temporal:

      <h1>
        <a href="https://tc39.es/ecma402/#sec-canonicalizetimezonename">CanonicalizeTimeZoneName</a> (
          _timeZone_: a String value that is a valid time zone name as verified by IsValidTimeZoneName,
        )
      </h1>
      <dl class="header">
        <dt>description</dt>
        <dd>It returns the canonical and case-regularized form of _timeZone_.</dd>
      </dl>

yields

[2022-03-17T15:36:31.761Z] Error: spec/intl.html:53:14: expected `(`
[2022-03-17T15:36:31.763Z] Error: spec/intl.html:52:5: clauses with structured headers should have a type

Ms2ger avatar Mar 17 '22 15:03 Ms2ger

Yeah, headers are in a specific format, not arbitrary HTML. I don't think we want to support arbitrary HTML in AO names.

What's the thing you're trying to accomplish by having HTML there?

bakkot avatar Mar 22 '22 03:03 bakkot

Provide a link to the original AO that we're replacing. I guess I'm happy to format them any semi-structured way you want to support.

Ms2ger avatar Mar 22 '22 08:03 Ms2ger