GithubHelp home page GithubHelp logo

Comments (7)

bakkot avatar bakkot commented on May 28, 2024 1

Since it seems like most instances of -word are cases where it should be linked, I am loathe to add hardcoded special cases here. I'd prefer to stick with emu-not-ref for the less common cases when it shouldn't link, I think.

from ecmarkup.

bakkot avatar bakkot commented on May 28, 2024

You're not doing anything wrong, but that's just how ecmarkup works - any use of a defined term links to that term. And 262 defines the term "safe". (And you're loading its biblio, for good reason.) It probably shouldn't but as long as it does, you can use emu-not-ref to prevent it from linking.

from ecmarkup.

justingrant avatar justingrant commented on May 28, 2024

Excellent, thanks Kevin for the pointer to emu-not-ref. We'll use that for this case.

Perhaps ecmarkup shouldn't treat - as a word delimiter?

from ecmarkup.

bakkot avatar bakkot commented on May 28, 2024

Yeah, maybe. On the other hand, a lot of times it is - non-finite linking "finite", etc, generally makes sense.

from ecmarkup.

justingrant avatar justingrant commented on May 28, 2024

I did a quick look for \w-<emu-xref in the current 262 and 402 specs' markup and found 17 matches. All of them looked valid except this one:
image

Perhaps auto-linking could be improved via a whitelist of specific frequently-used prefixes, after only which auto-linking would be allowed? Here's the prefixes used for the valid auto-links in the current specs that look OK:

  • per-
  • mullti-
  • single-
  • non-
  • inter-

from ecmarkup.

justingrant avatar justingrant commented on May 28, 2024

/ might be another questionable delimiter. Found a few emu-not-refs used in the Temporal spec to avoid "date/time values" from being linked.

from ecmarkup.

justingrant avatar justingrant commented on May 28, 2024

Sound good to me. I filed tc39/ecma262#3014 to fix the one missing emu-not-ref in the existing 262 spec. Closing this issue.

from ecmarkup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.