Comments (4)
matches without a terminal semicolon
Only for legacy entities, which is consistent with HTML. The list of entities matched is taken directly from the HTML spec.
also fails to handle numeric references
I don't think we have any uses of that form to check if the decision to use that form was deliberate (e.g. the numeric value of the code point is relevant to the reader), so I didn't implement it. If there's some usages out there which you think are definitely not deliberate, I'd be happy to accept a PR adding that.
the prefix matching that renders e.g.
I'm ¬it; I tell you as I'm ¬it; I tell you
Omitting that case was a deliberate decision, which I stand by. Rather than formatting those, I would prefer to have a lint rule for unknown entity-like things which will warn on that case.
and the inner logic lowercasing
≤
(which is its own bug and should be<
) and&
only with a terminal semicolon
Fixed in #489, thanks.
and also inconsistent with the lack of e.g.
AMp;
I don't think this is literally ever going to come up, so I don't want to spend time implementing it.
from ecmarkup.
I don't think we have any uses of that form to check if the decision to use that form was deliberate (e.g. the numeric value of the code point is relevant to the reader), so I didn't implement it. If there's some usages out there which you think are definitely not deliberate, I'd be happy to accept a PR adding that.
I think it makes as much sense to convert numeric references as it does to convert named references, so I'll try to submit that.
the prefix matching that renders e.g.
I'm ¬it; I tell you as I'm ¬it; I tell you
Omitting that case was a deliberate decision, which I stand by. Rather than formatting those, I would prefer to have a lint rule for unknown entity-like things which will warn on that case.
and also inconsistent with the lack of e.g.
AMp;
I don't think this is literally ever going to come up, so I don't want to spend time implementing it.
Perfect, that's the kind of context I was looking for. It would incline me towards requiring the semicolon for replacement and catching mistakes by linting (i.e., the first suggestion above). WDYT?
from ecmarkup.
It would incline me towards requiring the semicolon for replacement and catching mistakes by linting
I prefer errors to be automatically fixed when possible, which only the formatter is capable of at the moment. &
is unambiguously supposed to be &
, so it would be nice for the tooling to fix it rather than just pointing it out. This is not true of e.g. ¬it;
, where it's not clear what the user intended, so that needs to be a lint rule.
(It would be nice to make the linter support --fix
, but that's a bunch more work.)
So I'm inclined to stick with the current strategy unless there's some improvement to the user experience from the strategy you propose.
from ecmarkup.
Works for me.
from ecmarkup.
Related Issues (20)
- "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
- Allow rest argument list in abstract closures
- extract SVG from CSS as image file in /img
- integrate minifiers to save bandwidth and improve load times HOT 1
- include `meta property="og:description"` tags
- ExtendedPatternCharacter has emu-t outside of the emu-gmod
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.