Comments (7)
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.
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.
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.
Yeah, maybe. On the other hand, a lot of times it is - non-finite
linking "finite", etc, generally makes sense.
from ecmarkup.
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:
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.
/
might be another questionable delimiter. Found a few emu-not-ref
s used in the Temporal spec to avoid "date/time values" from being linked.
from ecmarkup.
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)
- anchor link was not handled correctly in new windows (multi-page only)
- prevent line wrap at end of Records and Lists
- `declared` vs. `<ins>` or `<del>` HOT 3
- Completion record linting doesn't work quite right with parentheses HOT 9
- <ins>/<del> don't work with structured headers
- "clause numbers should be strictly increasing" logic is incorrect
- id namespacing is undocumented and seems to be broken HOT 1
- Double-indented text does not produce a warning HOT 2
- Can structured headers' <ins>/<del> UI be improved? HOT 1
- Should spaces between AO names and arguments be allowed?
- consider linting against camelCase enum values HOT 1
- commit snapshot banner obscures bottom of references pane HOT 2
- Menu pane should be resizable
- add hidden `~` around enums and `_` around aliases for copy-paste HOT 1
- consider adding indentation spaces to hidden spec steps for copy-paste HOT 3
- dfns should have IDs
- `#` is weird in IBM Plex mono HOT 5
- warn for unnecessary emu-not-refs HOT 1
- Add TypeScript declaration file
- should permit iterating a List without declaring a binding HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecmarkup.